Skip to content

Commit 8b8f33a

Browse files
authored
Add previous exception message when fail to start process (#192)
1 parent 340f1a9 commit 8b8f33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context/ProcessContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static function start(
152152
try {
153153
$process = Process::start($command, $workingDirectory, $environment);
154154
} catch (\Throwable $exception) {
155-
throw new ContextException("Starting the process failed", 0, $exception);
155+
throw new ContextException("Starting the process failed: " . $exception->getMessage(), 0, $exception);
156156
}
157157

158158
try {

0 commit comments

Comments
 (0)