We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2277624 commit 56ccbc1Copy full SHA for 56ccbc1
src/main/groovy/io/seqera/wave/ErrorHandler.groovy
@@ -34,7 +34,13 @@ class ErrorHandler {
34
final errId = LongRndKey.rndHex()
35
def msg = t.message
36
if( t instanceof WaveException && msg ) {
37
- log.warn (t.cause ? "$msg -- Cause: ${t.cause.message ?: t.cause}".toString() : msg )
+ msg = (t.cause ? "$msg -- Cause: ${t.cause.message ?: t.cause}".toString() : msg )
38
+ if( !debug ) {
39
+ log.warn(msg)
40
+ }
41
+ else {
42
+ log.warn(msg,t)
43
44
}
45
else {
46
if( debug && !msg )
0 commit comments