Skip to content

Commit

Permalink
Remove redundant text from console err msg
Browse files Browse the repository at this point in the history
The client was displaying
	Error: UNAUTHENTICATED: incorrect 'password' rpc header value
from the StatusRuntimeException message.

Strip "UNAUTHENTICATED: " from the exception message string before
printing it.
  • Loading branch information
ghubstan committed Apr 25, 2020
1 parent 16c2efc commit 56f2923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/java/bisq/cli/CliMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static void main(String[] args) {
exit(EXIT_FAILURE);
} catch (StatusRuntimeException ex) {
Throwable t = ex.getCause() == null ? ex : ex.getCause();
err.println("Error: " + t.getMessage());
err.println("Error: " + t.getMessage().replace("UNAUTHENTICATED: ", ""));
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 56f2923

Please sign in to comment.