From 2a22dc7787935a434a1dc30f9116ee878aecea17 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 6 Feb 2017 17:21:16 +0100 Subject: [PATCH] nimsuggest improvement: don't die because of illformed ASTs --- compiler/msgs.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index e6a2b75a67..49e4fa184a 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -12,7 +12,7 @@ import type TMsgKind* = enum - errUnknown, errIllFormedAstX, errInternal, errCannotOpenFile, errGenerated, + errUnknown, errInternal, errIllFormedAstX, errCannotOpenFile, errGenerated, errXCompilerDoesNotSupportCpp, errStringLiteralExpected, errIntLiteralExpected, errInvalidCharacterConstant, errClosingTripleQuoteExpected, errClosingQuoteExpected, @@ -135,8 +135,8 @@ type const MsgKindToStr*: array[TMsgKind, string] = [ errUnknown: "unknown error", - errIllFormedAstX: "illformed AST: $1", errInternal: "internal error: $1", + errIllFormedAstX: "illformed AST: $1", errCannotOpenFile: "cannot open \'$1\'", errGenerated: "$1", errXCompilerDoesNotSupportCpp: "\'$1\' compiler does not support C++",