diff --git a/bin/kart b/bin/kart index 32f6bd4..cd59bbd 100644 --- a/bin/kart +++ b/bin/kart @@ -22,7 +22,12 @@ function handleError(e) { if (process.env.DEBUG) { console.error(e); } else { - console.log(e.message.red); + const message = e.message || e.stack; + if (message) { + console.log(message.red); + } else { + console.error(e); + } } }