From ab7fc23d648e15a71206f6f71e33168d1f684bb2 Mon Sep 17 00:00:00 2001
From: David Walter Seikel
Date: Sat, 21 Jan 2012 18:49:18 +1000
Subject: Standardise error messages.

---
 LuaSL/src/LuaSL_compile.c      | 4 ++--
 LuaSL/src/LuaSL_lemon_yaccer.y | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

(limited to 'LuaSL')

diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 0148444..06c55ef 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -313,7 +313,7 @@ LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier)
     LSL_Leaf *var = findVariable(compiler, identifier->value.stringValue);
 
     if (NULL == var)
-	PE("NOT found %s @ line %d column %d!", identifier->value.stringValue, identifier->line, identifier->column);
+	PE("NOT found %s @ line %d, column %d!", identifier->value.stringValue, identifier->line, identifier->column);
 #ifdef LUASL_DEBUG
     else
 	PI("Found %s!", identifier->value.stringValue);
@@ -428,7 +428,7 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval,
 		rightType = allowed[right->basicType].name;
 	    }
 
-	    PE("Invalid operation [%s(%s) %s %s(%s)] @ line %d column %d", leftType, leftToken, lval->token->token, rightType, rightToken, lval->line, lval->column);
+	    PE("Invalid operation [%s(%s) %s %s(%s)] @ line %d, column %d!", leftType, leftToken, lval->token->token, rightType, rightToken, lval->line, lval->column);
 	}
     }
 
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y
index 2ec890e..6e82578 100644
--- a/LuaSL/src/LuaSL_lemon_yaccer.y
+++ b/LuaSL/src/LuaSL_lemon_yaccer.y
@@ -223,14 +223,14 @@ expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN.			[L
 {
     gameGlobals *game = compiler->game;
 
-    PE("Giving up.  Parser stack overflow @ line %d column %d.", yypMinor->yy0->line, yypMinor->yy0->column);  // Gotta love consistancy, if it ever happens.
+    PE("Giving up.  Parser stack overflow @ line %d, column %d!", yypMinor->yy0->line, yypMinor->yy0->column);  // Gotta love consistancy, if it ever happens.
 }
 
 %syntax_error
 {
     gameGlobals *game = compiler->game;
 
-    PE("Syntax error @ line %d column %d.", yyminor.yy0->line, yyminor.yy0->column);
+    PE("Syntax error @ line %d, column %d!", yyminor.yy0->line, yyminor.yy0->column);
 }
 
 
-- 
cgit v1.1