From 5f95290e4ba5bd4551e83dc4dc8e3a48b9d08ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Sat, 9 Apr 2016 09:45:39 +0200 Subject: [PATCH] [OPTIMISATION] Optimised exception-message thrown when not using IExceptionHandler interface. --- src/Pecee/SimpleRouter/RouterBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/SimpleRouter/RouterBase.php b/src/Pecee/SimpleRouter/RouterBase.php index 0fcd3c8..d73b67a 100644 --- a/src/Pecee/SimpleRouter/RouterBase.php +++ b/src/Pecee/SimpleRouter/RouterBase.php @@ -188,7 +188,7 @@ class RouterBase { if($this->request->loadedRoute !== null && $this->request->loadedRoute->exceptionHandler !== null) { $handler = new $this->request->loadedRoute->exceptionHandler(); if(!($handler instanceof IExceptionHandler)) { - throw new RouterException('Exception handler must be instanceof IExceptionHandler.'); + throw new RouterException('Exception handler must implement the IExceptionHandler interface.'); } $handler->handleError($this->request, $this->request->loadedRoute, $e);