From c1679edad20741a2229c83066a24820f29ad2f9b Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 4 Feb 2018 07:23:47 +0100 Subject: [PATCH] fixes #7080 --- compiler/msgs.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 4e6226122e..936b0172ab 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -26,7 +26,7 @@ type errAtPopWithoutPush, errEmptyAsm, errInvalidIndentation, errExceptionExpected, errExceptionAlreadyHandled, errYieldNotAllowedHere, errYieldNotAllowedInTryStmt, - errInvalidNumberOfYieldExpr, errCannotReturnExpr, + errInvalidNumberOfYieldExpr, errCannotReturnExpr, errNoReturnWithReturnTypeNotAllowed, errAttemptToRedefine, errStmtInvalidAfterReturn, errStmtExpected, errInvalidLabel, errInvalidCmdLineOption, errCmdLineArgExpected, errCmdLineNoArgExpected, @@ -1025,6 +1025,9 @@ proc liMessage(info: TLineInfo, msg: TMsgKind, arg: string, handleError(msg, eh, s) proc fatal*(info: TLineInfo, msg: TMsgKind, arg = "") = + # this fixes bug #7080 so that it is at least obvious 'fatal' + # was executed. + errorOutputs = {eStdOut, eStdErr} liMessage(info, msg, arg, doAbort) proc globalError*(info: TLineInfo, msg: TMsgKind, arg = "") =