Skip to content

Commit

Permalink
Http\Session: better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 3, 2012
1 parent 13f66b3 commit fa75147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nette/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ private function configure(array $config)

} else {
if (defined('SID')) {
throw new Nette\InvalidStateException("Unable to set 'session.$key' to value '$value' when session has been started by session.auto_start or session_start().");
throw new Nette\InvalidStateException("Unable to set 'session.$key' to value '$value' when session has been started" . ($this->started ? "." : " by session.auto_start or session_start()."));
}
if (isset($special[$key])) {
$key = "session_$key";
Expand Down

0 comments on commit fa75147

Please sign in to comment.