Skip to content

Commit

Permalink
Add previous exception message when fail to start process (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
thgs authored Nov 29, 2023
1 parent 340f1a9 commit 8b8f33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context/ProcessContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static function start(
try {
$process = Process::start($command, $workingDirectory, $environment);
} catch (\Throwable $exception) {
throw new ContextException("Starting the process failed", 0, $exception);
throw new ContextException("Starting the process failed: " . $exception->getMessage(), 0, $exception);
}

try {
Expand Down

0 comments on commit 8b8f33a

Please sign in to comment.