Skip to content

Commit c06f6a3

Browse files
feeblefakiejnmt
andauthored
Backport to branch(3.9) : Fix status code handling (#341)
Co-authored-by: Jun Nemoto <35618893+jnmt@users.noreply.github.com>
1 parent 1329aec commit c06f6a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/src/main/java/com/scalar/dl/ledger/server/CommonService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ private io.grpc.Status convert(StatusCode code) {
130130
case CONTRACT_CONTEXTUAL_ERROR:
131131
case UNLOADABLE_FUNCTION:
132132
case INVALID_FUNCTION:
133+
case INVALID_ARGUMENT:
133134
return io.grpc.Status.INVALID_ARGUMENT;
134135
case CERTIFICATE_NOT_FOUND:
135136
case CONTRACT_NOT_FOUND:
136137
case ASSET_NOT_FOUND:
137138
case FUNCTION_NOT_FOUND:
139+
case SECRET_NOT_FOUND:
138140
return io.grpc.Status.NOT_FOUND;
139141
case CERTIFICATE_ALREADY_REGISTERED:
140142
case SECRET_ALREADY_REGISTERED:

0 commit comments

Comments
 (0)