소스 검색

Drobna poprawka do JPK

Mariusz Muszyński 8 년 전
부모
커밋
7cbfce224b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SE/se-lib/Route/UrlAction/JPK.php

+ 1 - 1
SE/se-lib/Route/UrlAction/JPK.php

@@ -497,7 +497,7 @@ format: 'YYYY-MM'
 		if (!$dom->schemaValidate(APP_PATH_SCHEMA . "/jpk/Schemat_JPK_VAT(2)_v1-0.xsd")) {
 			$errors = '';
 			foreach (libxml_get_errors() as $libxml_error) $errors .= "<br/>{$libxml_error->message}";
-			throw new Exception("Plik JPK niezgodny ze schematem XSD{$errors}");
+			throw new Exception("Plik JPK niezgodny ze schematem XSD{$errors}<pre>" . htmlentities($dom->saveXML()) . "</pre>");
 		}
 
 		$xml = simplexml_load_string($dom->saveXML());