Skip to content

Commit

Permalink
Handle other type of exception -- #410
Browse files Browse the repository at this point in the history
  • Loading branch information
enridaga committed Nov 20, 2023
1 parent 837f36e commit 9a29b01
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public static void main(String[] args) throws Exception {
} catch (Exception e) {
logger.error("An error occurred while loading {}", loadSource);
logger.error(" - Problem was: ", e);
}
}
} else {
if(!loadSource.exists()){
logger.error("Option 'load' failed (resource does not exist): {}", loadSource);
Expand Down Expand Up @@ -576,9 +576,8 @@ public static void main(String[] args) throws Exception {
}
} catch (FileNotFoundException e) {
logger.error("File not found: {}", e.getMessage());
} catch(ParseException e1){
} catch(QueryParseException | ParseException e1){
logger.error("SPARQL syntax error (or query file does not exists): {}",e1.getMessage());
cli.printHelp();
}
if(logger.isTraceEnabled()) {
logger.trace("[time] Process ends: {}", System.currentTimeMillis() - duration);
Expand Down

0 comments on commit 9a29b01

Please sign in to comment.