Skip to content

Commit

Permalink
Updated the IllegalArguementException message.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsingh433 committed Nov 14, 2023
1 parent db98f7d commit 401b9e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public int execute(final String fullCommand, final CommandLine cl, final Shell s
} catch (NumberFormatException nfe) {
Shell.log.error("Arg must be an integer.", nfe);
} catch (IllegalArgumentException iae) {
Shell.log.error("Arg must be greater than one.", iae);
Shell.log.error("{}", iae.getMessage(), iae);
}
}
final Class<? extends Formatter> formatter = getFormatter(cl, tableName, shellState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public int execute(final String fullCommand, final CommandLine cl, final Shell s
} catch (NumberFormatException nfe) {
Shell.log.error("Arg must be an integer.", nfe);
} catch (IllegalArgumentException iae) {
Shell.log.error("Arg must be greater than one.", iae);
Shell.log.error("{}", iae.getMessage(), iae);

}
}
printRecords(cl, shellState, config, scanner, formatter, printFile);
Expand Down

0 comments on commit 401b9e8

Please sign in to comment.