Skip to content

Commit 0dd25ad

Browse files
authored
enable user error handling (#18)
* enable user error handling * Fix typo
1 parent b1acab0 commit 0dd25ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cs2pr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if ($argc === 1) {
2929
exit(9);
3030
}
3131

32+
// enable user error handling
33+
libxml_use_internal_errors(true);
34+
3235
$root = @simplexml_load_string($xml);
3336

3437
if ($root === false) {

0 commit comments

Comments
 (0)