New exception message on parser error

This commit is contained in:
DHTMLGoodies
2013-01-25 01:43:50 +01:00
parent 74900962f4
commit d5b412c58b

View File

@@ -959,7 +959,7 @@ class FenParser0x88
}
if(!isset($ret['from'])){
$msg = $this->fen .", ". $notation.", Rank:". $fromRank. ", File:". $fromFile.",". count($foundPieces).", ". $foundPieces[0];
$msg = "Fen: ".$this->fen ."\nnotation: ". $notation."\nRank:". $fromRank. "\nFile:". $fromFile."\n". count($foundPieces).", ". $foundPieces[0];
throw new Exception($msg);
}
$ret['from'] = Board0x88Config::$numberToSquareMapping[$ret['from']];