We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0a5e7 commit 2e7fa44Copy full SHA for 2e7fa44
src/SPC/builder/BuilderBase.php
@@ -422,7 +422,7 @@ public function emitPatchPoint(string $point_name): void
422
} else {
423
logger()->critical('Please check with --debug option to see more details.');
424
}
425
- exit(1);
+ throw $e;
426
427
428
tests/SPC/builder/BuilderTest.php
@@ -246,6 +246,7 @@ public function testEmitPatchPoint(string $point)
246
public function testEmitPatchPointNotExists()
247
{
248
$this->expectOutputRegex('/failed to run/');
249
+ $this->expectException(RuntimeException::class);
250
$this->builder->setOption('with-added-patch', ['/tmp/patch-point.not_exsssists.php']);
251
$this->builder->emitPatchPoint('not-exists');
252
0 commit comments