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