Skip to content

Commit 64b51a5

Browse files
forrest79dg
authored andcommitted
Session: keep exceptions chain on session_start (#240)
1 parent e74aa83 commit 64b51a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function doStart($mustExists = false): void
100100
'session_start',
101101
[['read_and_close' => $this->readAndClose]],
102102
function (string $message) use (&$e): void {
103-
$e = new Nette\InvalidStateException($message);
103+
$e = new Nette\InvalidStateException($message, previous: $e);
104104
},
105105
);
106106
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)