Commit bf206efc by Alexander Makarov

Fixes #6427: In case of invalid route web application now throws exception with…

Fixes #6427: In case of invalid route web application now throws exception with "Page not found" instead of "Invalid Route"
parent ab003354
......@@ -8,6 +8,7 @@ Yii Framework 2 Change Log
- Enh #6247: Logger and error handler are now using slightly less memory (stepanselyuk, samdark)
- Enh #6434: Added `yii\behaviors\SluggableBehavior::immutable` to support keeping the generated slug unchanged (trntv)
- Enh #6467: `ActiveForm` will scroll to the nearest visible element when the first error input is hidden (newartix)
- Chg #6427: In case of invalid route web application now throws exception with "Page not found" instead of "Invalid Route" (cebe, samdark)
2.0.1 December 07, 2014
-----------------------
......
......@@ -92,7 +92,7 @@ class Application extends \yii\base\Application
return $response;
}
} catch (InvalidRouteException $e) {
throw new NotFoundHttpException($e->getMessage(), $e->getCode(), $e);
throw new NotFoundHttpException(Yii::t('yii', 'Page not found.', $e->getCode(), $e));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment