mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Add comment explaining exception message mangling
This commit is contained in:
parent
f4b4f5ad89
commit
f5803492bd
@ -150,6 +150,9 @@ public class CliMain {
|
||||
}
|
||||
}
|
||||
} catch (StatusRuntimeException ex) {
|
||||
// This exception is thrown if the client-provided password credentials do not
|
||||
// match the value set on the server. The actual error message is in a nested
|
||||
// exception and we clean it up a bit to make it more presentable.
|
||||
Throwable t = ex.getCause() == null ? ex : ex.getCause();
|
||||
err.println("Error: " + t.getMessage().replace("UNAUTHENTICATED: ", ""));
|
||||
exit(EXIT_FAILURE);
|
||||
|
Loading…
Reference in New Issue
Block a user