|
|
@@ -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());
|