Explorar o código

Fixed the parsing of OQL error messages

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1390 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=14) %!d(string=hai) anos
pai
achega
ffe5913cba
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      core/oql/oql-lexer.php

+ 6 - 6
core/oql/oql-lexer.php

@@ -580,7 +580,7 @@ class OQLLexerRaw
 
 }
 
-define('UNEXPECTED_INPUT_AT_LINE', 'Unexpected input at line');
+define('UNEXPECTED_INPUT_AT_LINE', 'Unexpected input at line ');
 
 class OQLLexerException extends OQLException
 {
@@ -597,11 +597,11 @@ class OQLLexer extends OQLLexerRaw
 		return max(0, $this->count - strlen($this->value));
 	}
 
-   function yylex()
-   {
-      try
-      {
-      	return parent::yylex();
+	function yylex()
+	{
+   		try
+		{
+      		return parent::yylex();
 		}
 		catch (Exception $e)
 		{