Skip to content

Commit

Permalink
Add exception handling for http on https
Browse files Browse the repository at this point in the history
  • Loading branch information
qtc-de committed Sep 28, 2023
1 parent 1813b2c commit c6ecd62
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ else if (t instanceof javax.security.sasl.SaslException)
Utils.exit(e);
}

else if (t.getMessage().contains("Invalid response"))
{
Logger.eprintMixedBlue("You probably connected to an", "remote+https", "port using ");
Logger.printlnPlainBlue("remote+http");
Utils.exit(e);
}

else
{
String className = t.getClass().getName();
Expand Down

0 comments on commit c6ecd62

Please sign in to comment.