Skip to content

Commit

Permalink
Fix issue where verbosity wasn't working on subcommands (corda#4147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Keenan authored Nov 1, 2018
1 parent 777026e commit 7ca1dd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fun CordaCliWrapper.start(args: Array<String>) {
exitProcess(ExitCodes.SUCCESS)
} catch (e: ExecutionException) {
val throwable = e.cause ?: e
if (this.verbose) {
if (this.verbose || this.subCommands().any { it.verbose} ) {
throwable.printStackTrace()
} else {
System.err.println("*ERROR*: ${throwable.rootMessage ?: "Use --verbose for more details"}")
Expand Down

0 comments on commit 7ca1dd5

Please sign in to comment.