New exception message on parser error
This commit is contained in:
@@ -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']];
|
||||
|
Reference in New Issue
Block a user