Skip to content

Commit

Permalink
chore(middleware): do not wrap internal error (#147)
Browse files Browse the repository at this point in the history
Because

- we should not wrap internal error

This commit

- do not wrap internal error
  • Loading branch information
donch1989 authored Dec 1, 2023
1 parent a264412 commit 7c59e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/middleware/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ func InjectErrCode(err error) error {
return status.Error(codes.InvalidArgument, err.Error())

default:
return status.Error(codes.Internal, err.Error())
return err
}
}

0 comments on commit 7c59e1e

Please sign in to comment.