From d5b412c58b5ac909f3faf0a34501542000f32a81 Mon Sep 17 00:00:00 2001 From: DHTMLGoodies Date: Fri, 25 Jan 2013 01:43:50 +0100 Subject: [PATCH] New exception message on parser error --- FenParser0x88.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FenParser0x88.php b/FenParser0x88.php index 18cc808..56109ce 100644 --- a/FenParser0x88.php +++ b/FenParser0x88.php @@ -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']];