summary refs log tree commit diff stats
path: root/compiler/c2nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/c2nim')
-rwxr-xr-xcompiler/c2nim/clex.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/c2nim/clex.nim b/compiler/c2nim/clex.nim
index 1894fa99f..db8527aa0 100755
--- a/compiler/c2nim/clex.nim
+++ b/compiler/c2nim/clex.nim
@@ -130,11 +130,11 @@ proc getLineInfo*(L: TLexer): TLineInfo =
   result = newLineInfo(L.fileIdx, L.linenumber, getColNumber(L, L.bufpos))
 
 proc lexMessage*(L: TLexer, msg: TMsgKind, arg = "") = 
-  msgs.GenericMessage(getLineInfo(L), msg, arg)
+  msgs.GlobalError(getLineInfo(L), msg, arg)
 
 proc lexMessagePos(L: var TLexer, msg: TMsgKind, pos: int, arg = "") = 
   var info = newLineInfo(L.fileIdx, L.linenumber, pos - L.lineStart)
-  msgs.GenericMessage(info, msg, arg)
+  msgs.GlobalError(info, msg, arg)
 
 proc TokKindToStr*(k: TTokKind): string =
   case k