Pārlūkot izejas kodu

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 14 gadi atpakaļ
vecāks
revīzija
ffe5913cba
1 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  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)
 		{