Skip to content

Commit 80f465d

Browse files
authored
show the error message for subcommands (#889)
1 parent b0c4ffe commit 80f465d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/emissary/Emissary.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ protected void execute(String[] args) {
120120
} catch (UnmatchedArgumentException e) {
121121
dumpBanner();
122122
LOG.error("Undefined command: {}", Arrays.toString(args));
123+
LOG.error("\t {}", e.getLocalizedMessage());
123124
HelpCommand.dumpCommands(cli);
124125
exit(1);
125126
} catch (Exception e) {

0 commit comments

Comments
 (0)