Skip to content

Commit cd9084f

Browse files
committed
🧑‍💻 Set the SkipProviderException file and line to the previous exception if available
1 parent 3471424 commit cd9084f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/Roots/Acorn/Exceptions/SkipProviderException.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ public function __construct(string $message = '', int $code = 0, ?Throwable $pre
1717
parent::__construct($message, $code, $previous);
1818

1919
$this->package = $package;
20+
21+
if ($previous) {
22+
$this->file = $previous->getFile();
23+
$this->line = $previous->getLine();
24+
}
2025
}
2126

2227
/**

0 commit comments

Comments
 (0)