Skip to content

Commit

Permalink
http: Improved error handling for incorrect URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Oct 8, 2024
1 parent d8012ba commit 2fb5b2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ private static URL getUrl(Bindings bindings, HttpChannel con)
} else {
return new URI(str).toURL();
}
} catch (MalformedURLException | URISyntaxException e) {
throw new ProcedureException("invalid URL: " + str);
} catch (MalformedURLException | URISyntaxException | IllegalArgumentException e) {
throw new ProcedureException("invalid URL; " + e.getMessage() + ": "+ str);
}
}

Expand Down

0 comments on commit 2fb5b2a

Please sign in to comment.