Skip to content

Commit

Permalink
fix(exception): Fix the exception output of RoutingProfileManager (#1691
Browse files Browse the repository at this point in the history
)
  • Loading branch information
takb authored Feb 19, 2024
2 parents 057625a + 05f3e68 commit 9983dec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ public void initialize(EngineConfig config) {
LOGGER.info("========================================================================");
RoutingProfileManagerStatus.setReady(true);
} catch (ExecutionException ex) {
fail("Configured source file: '" + config.getSourceFile() + "' does not appear to be a valid OSM data file! Exiting.");
fail("Failed to either read or execute the ors configuration and its parameters: " + ex.getMessage());
Thread.currentThread().interrupt();
return;
} catch (Exception ex) {
fail("Failed to initialize RoutingProfileManager instance! " + ex.getMessage());
fail("Unhandled exception at RoutingProfileManager initialization: " + ex.getMessage());
Thread.currentThread().interrupt();
System.exit(1);
}
Expand Down

0 comments on commit 9983dec

Please sign in to comment.