Skip to content

Commit 3765a6b

Browse files
committed
Optimize error handler
1 parent 0ae8fea commit 3765a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Hooks.php

+4
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,10 @@ public function dumpAutoload()
652652

653653
$process = new Process($composer.' dump-autoload');
654654
$process->setWorkingDirectory(base_path())->run();
655+
656+
if (!$process->isSuccessful()) {
657+
throw new ProcessFailedException($process);
658+
}
655659
}
656660

657661
/**

0 commit comments

Comments
 (0)