diff --git a/dictionaries/errors.definition.json b/dictionaries/errors.definition.json index 7dd755b2442a9fee919638f151540faa61eb42c2..f2b9261f1e31baab9c2d818a4ebb5cc2b2c6e083 100644 --- a/dictionaries/errors.definition.json +++ b/dictionaries/errors.definition.json @@ -199,5 +199,11 @@ }, "descr_USERABORTED": { "en": "The authentication was aborted by the user" + }, + "title_NOSTATE": { + "en": "State information lost" + }, + "descr_NOSTATE": { + "en": "State information lost, and no way to restart the request" } } diff --git a/lib/SimpleSAML/Error/NoState.php b/lib/SimpleSAML/Error/NoState.php index b7610d4766b63c218a4dbe19b73bdd7279556731..7233807262a27069b92c7dce8d63beee0279f980 100644 --- a/lib/SimpleSAML/Error/NoState.php +++ b/lib/SimpleSAML/Error/NoState.php @@ -12,11 +12,9 @@ class SimpleSAML_Error_NoState extends SimpleSAML_Error_Error { /** * Create the error - * - * @param string $reason Optional description of why the given page could not be found. */ public function __construct() { - parent::__construct('State information lost, and no way to restart the request.'); + parent::__construct('NOSTATE'); }