mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:56:53 +00:00
return 400 instead of 503 for bad verification session-id
This commit is contained in:
1 parent
59ebe65643
commit
0e0c0c5dfe
2 files changed
+18
-2
No files matched your search
+1
-1
@@ -623,7 +623,7 @@ public class VerificationController {
|
||||
} catch (final CompletionException | CancellationException e) {
|
||||
final Throwable unwrapped = ExceptionUtils.unwrap(e);
|
||||
|
||||
if (unwrapped.getCause() instanceof StatusRuntimeException grpcRuntimeException) {
|
||||
if (unwrapped instanceof StatusRuntimeException grpcRuntimeException) {
|
||||
if (grpcRuntimeException.getStatus().getCode() == Status.Code.INVALID_ARGUMENT) {
|
||||
throw new BadRequestException();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user