Skip to content

Commit

Permalink
feat: more generic error
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 17, 2023
1 parent db2a204 commit 0b4a3d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class JsonRpcServer {
} catch (err: any) {
// Propagate the error message to the client. Plenty of the errors are expected to occur (e.g. adding
// a duplicate recipient) so this is necessary.
ctx.status = 409;
ctx.status = 400;
ctx.body = { error: err.message };
}
});
Expand Down Expand Up @@ -121,7 +121,7 @@ export class JsonRpcServer {
} catch (err: any) {
// Propagate the error message to the client. Plenty of the errors are expected to occur (e.g. adding
// a duplicate recipient) so this is necessary.
ctx.status = 409;
ctx.status = 400;
ctx.body = { error: err.message };
}
}
Expand Down

0 comments on commit 0b4a3d1

Please sign in to comment.