summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-02-06 17:21:16 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-06 20:40:27 +0100
commit2a22dc7787935a434a1dc30f9116ee878aecea17 (patch)
treea276dbc907e8e5a518a15b4933b1f85102448233 /compiler/msgs.nim
parentecdf6045014fdc31b6407d202f188c2243f045c8 (diff)
downloadNim-2a22dc7787935a434a1dc30f9116ee878aecea17.tar.gz
nimsuggest improvement: don't die because of illformed ASTs
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r--compiler/msgs.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index e6a2b75a6..49e4fa184 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++",