mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
[CORDA-3342] - Show proper error message and adjust indentation in shell (#5612)
This commit is contained in:
parent
c882b221a5
commit
bb7c06fa45
@ -175,11 +175,13 @@ abstract class ANSIProgressRenderer {
|
||||
var indent = 0
|
||||
while (errorToPrint != null) {
|
||||
ansi.fgRed()
|
||||
ansi.a("${IntStream.range(indent, indent).mapToObj { "\t" }.toList().joinToString(separator = "") { s -> s }} $errorIcon ${error.message}")
|
||||
ansi.reset()
|
||||
ansi.a("${"\t".repeat(indent)}$errorIcon ${errorToPrint.message}")
|
||||
ansi.newline()
|
||||
errorToPrint = errorToPrint.cause
|
||||
indent++
|
||||
}
|
||||
ansi.reset()
|
||||
|
||||
ansi.eraseLine(Ansi.Erase.FORWARD)
|
||||
ansi.newline()
|
||||
newLinesDrawn++
|
||||
|
Loading…
Reference in New Issue
Block a user