mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Fix issue where verbosity wasn't working on subcommands (#4147)
This commit is contained in:
parent
777026eb79
commit
7ca1dd5848
@ -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"}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user