Skip to content

Commit

Permalink
fix: Fail on XML parse error
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <[email protected]>
  • Loading branch information
provokateurin committed Dec 13, 2023
1 parent 618132c commit 94af21e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generate-spec
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ $infoXMLPath = $dir . "/appinfo/info.xml";

if (file_exists($infoXMLPath)) {
$xml = simplexml_load_file($infoXMLPath);
if ($xml === false) {
Logger::panic("appinfo", "info.xml file at " . $infoXMLPath . " is not parsable");
}

$appIsCore = false;
$appID = (string)$xml->id;
Expand Down

0 comments on commit 94af21e

Please sign in to comment.