Skip to content

Commit

Permalink
Fix nil panic in layer service
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Feb 6, 2025
1 parent d90b932 commit fb57a52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/grpcserver/v2alpha1/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (s *LayerStreamService) Stream(

derr = stream.Send(l)
} else {
return status.Error(codes.Internal, derr.Error())
return status.Error(codes.Internal, err.Error())
}

switch {
Expand Down
2 changes: 1 addition & 1 deletion api/grpcserver/v2beta1/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (s *LayerStreamService) Stream(

derr = stream.Send(l)
} else {
return status.Error(codes.Internal, derr.Error())
return status.Error(codes.Internal, err.Error())
}

switch {
Expand Down

0 comments on commit fb57a52

Please sign in to comment.