mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #13167 from appwrite/fix/specs-fail-loudly
fix(specs): fail the task when a spec cannot be generated
This commit is contained in:
1 file changed
+4
-1
@@ -779,7 +779,10 @@ class Specs extends Action
|
||||
$parsedSpecs = $specs->parse();
|
||||
$this->verifyParsedSpec($parsedSpecs);
|
||||
} catch (\RuntimeException $e) {
|
||||
throw new \RuntimeException("Spec generation failed for {$platform} ({$format}): " . $e->getMessage(), 0, $e);
|
||||
// A throw is reported and carried on from, so stop here
|
||||
Console::error("Spec generation failed for {$platform} ({$format}): " . $e->getMessage());
|
||||
Console::exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
$encodedSpecs = \json_encode($parsedSpecs, JSON_PRETTY_PRINT);
|
||||
|
||||
Reference in new issue
Block a user