mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:06:50 +00:00
Don't forward exception messages in unavailable statuses
This commit is contained in:
1 parent
eaa3c5f20f
commit
c09e167f3f
1 file changed
+2
-2
+2
-2
@@ -62,7 +62,7 @@ public class ErrorMappingInterceptor implements ServerInterceptor {
|
||||
}
|
||||
case IllegalStateException e -> {
|
||||
ImpossibleEvents.logImpossible(log, e.getMessage(), e);
|
||||
yield GrpcExceptions.unavailable(e.getMessage());
|
||||
yield GrpcExceptions.unavailable();
|
||||
}
|
||||
case null -> {
|
||||
log.error("RPC {} finished with status UNKNOWN: {}",
|
||||
@@ -72,7 +72,7 @@ public class ErrorMappingInterceptor implements ServerInterceptor {
|
||||
default -> {
|
||||
log.error("RPC {} finished with status UNKNOWN",
|
||||
call.getMethodDescriptor().getFullMethodName(), status.getCause());
|
||||
yield GrpcExceptions.unavailable(status.getCause().getMessage());
|
||||
yield GrpcExceptions.unavailable();
|
||||
}
|
||||
};
|
||||
super.close(statusException.getStatus(), statusException.getTrailers());
|
||||
|
||||
Reference in new issue
Block a user