Skip to content

Commit

Permalink
Fix stderr bugs
Browse files Browse the repository at this point in the history
Some error messages still used split output to stderr and stdout. This
should now be fixed.
  • Loading branch information
qtc-de committed Dec 22, 2021
1 parent 23dc096 commit 7669062
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/de/qtc/rmg/internal/ExceptionHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static void noJRMPServer(Exception e, String during1, String during2)
{
Logger.eprintlnMixedYellow("Caught unexpected", "ConnectIOException", "during " + during1 + " " + during2 + ".");
Logger.eprintMixedBlue("Remote endpoint is either", "no RMI endpoint", "or uses an");
Logger.printlnPlainBlue(" SSL socket.");
Logger.eprintlnPlainBlue(" SSL socket.");

ExceptionHandler.sslOption();

Expand Down Expand Up @@ -499,7 +499,7 @@ public static void connectionReset(Exception e, String during1, String during2)
{
Logger.eprintlnMixedYellow("Caught", "Connection Reset", "during " + during1 + " " + during2 + ".");
Logger.eprintMixedBlue("The specified port is probably", "not an RMI service ");
Logger.printlnPlainMixedBlue("or you used a wrong", "TLS", "setting.");
Logger.eprintlnPlainMixedBlue("or you used a wrong", "TLS", "setting.");

ExceptionHandler.sslOption();
ExceptionHandler.showStackTrace(e);
Expand Down
11 changes: 11 additions & 0 deletions src/de/qtc/rmg/io/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,22 @@ public static void printlnPlainMixedBlue(String first, String second)
log(first + " " + blue(second));
}

public static void eprintlnPlainMixedBlue(String first, String second)
{
elog(first + " " + blue(second));
}

public static void printlnPlainMixedBlue(String first, String second, String third)
{
log(first + " " + blue(second) + " " + third);
}

public static void eprintlnPlainMixedBlue(String first, String second, String third)
{
elog(first + " " + blue(second) + " " + third);
}


public static void printPlainMixedBlue(String first, String second)
{
log(first + " " + blue(second), false);
Expand Down

0 comments on commit 7669062

Please sign in to comment.