Browse Source

pass exception to 500 event correctly.

Taylor Otwell 11 years ago
parent
commit
5ddeab6051
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/error.php

+ 1 - 1
laravel/error.php

@@ -54,7 +54,7 @@ class Error {
 		// Using events gives the developer more freedom.
 		// Using events gives the developer more freedom.
 		else
 		else
 		{
 		{
-			$response = Event::first('500', $exception);
+			$response = Event::first('500', array($exception));
 
 
 			$response = Response::prepare($response);
 			$response = Response::prepare($response);
 		}
 		}