Skip to content

Commit f68f38c

Browse files
authored
Adding the exception-cause to bootstrapping errors
1 parent 854f2b2 commit f68f38c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/CommandHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public static function begin(
303303
})($bootstrapFile);
304304
} catch (\Throwable $e) {
305305
$errorOutput->writeln($e->getMessage());
306-
throw new \PHPStan\Command\InceptionNotSuccessfulException();
306+
throw new \PHPStan\Command\InceptionNotSuccessfulException($e->getMessage(), 0, $e);
307307
}
308308
}
309309

0 commit comments

Comments
 (0)