From 56f2923ade7ad0cd21a4c3c7cb56ab9d18c64e12 Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Sat, 25 Apr 2020 18:16:23 -0300 Subject: [PATCH] Remove redundant text from console err msg 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. --- cli/src/main/java/bisq/cli/CliMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main/java/bisq/cli/CliMain.java b/cli/src/main/java/bisq/cli/CliMain.java index 89b4a86fc57..7cb7b34ee32 100644 --- a/cli/src/main/java/bisq/cli/CliMain.java +++ b/cli/src/main/java/bisq/cli/CliMain.java @@ -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); } }