Skip to content

Commit

Permalink
Session: keep exceptions chain on session_start (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
forrest79 committed Sep 18, 2024
1 parent 93b51fb commit afdd2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function doStart($mustExists = false): void
'session_start',
[['read_and_close' => $this->readAndClose]],
function (string $message) use (&$e): void {
$e = new Nette\InvalidStateException($message);
$e = new Nette\InvalidStateException($message, previous: $e);
},
);
} catch (\Throwable $e) {
Expand Down

0 comments on commit afdd2e1

Please sign in to comment.