From 3881ab4de12c938cb386ce26d5bf0a4b11147d3d Mon Sep 17 00:00:00 2001 From: Andrei Regiani Date: Sat, 4 Aug 2018 05:29:33 +0200 Subject: [PATCH] Display stack trace in case of errors when using --srcFile --- src/inim.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inim.nim b/src/inim.nim index bd3fd63..1ff7571 100644 --- a/src/inim.nim +++ b/src/inim.nim @@ -201,6 +201,8 @@ proc init(preload: string = nil) = # Compilation error else: bufferRestoreValidCode() + # Imports display more of the stack trace in case of errors, instead of one liners error + currentExpression = "import " # Pretend it was an import for showError() showError(output) cleanExit(1)