From 0bf3f2d3ce4a57454719ead421aa3284e88a6d17 Mon Sep 17 00:00:00 2001 From: HamZa Date: Mon, 8 Dec 2014 11:42:21 +0100 Subject: [PATCH 1/2] Changed $woops to $whoops --- 3-error-handler.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/3-error-handler.md b/3-error-handler.md index cb84972..760ca47 100644 --- a/3-error-handler.md +++ b/3-error-handler.md @@ -43,15 +43,15 @@ $environment = 'development'; /** * Register the error handler */ -$woops = new \Whoops\Run; +$whoops = new \Whoops\Run; if ($environment !== 'production') { - $woops->pushHandler(new \Whoops\Handler\PrettyPageHandler); + $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); } else { - $woops->pushHandler(function($e){ + $whoops->pushHandler(function($e){ echo 'Friendly error page and send an email to the developer'; }); } -$woops->register(); +$whoops->register(); throw new \Exception; From d1b04a16df5b25db2a43f002c2f8288c9573d703 Mon Sep 17 00:00:00 2001 From: HamZa Date: Mon, 8 Dec 2014 11:53:46 +0100 Subject: [PATCH 2/2] #18 changed $woops to $whoops --- 3-error-handler.md | 1 - 1 file changed, 1 deletion(-) diff --git a/3-error-handler.md b/3-error-handler.md index 760ca47..baa2358 100644 --- a/3-error-handler.md +++ b/3-error-handler.md @@ -60,4 +60,3 @@ throw new \Exception; You should now see a error page with the line highlighted where you throw the exception. If not, go back and debug until you get it working. Now would also be a good time for another commit. [<< previous](2-composer.md) | [next >>](4-http.md) -