Permalink
Browse files

Ensure handling of non Minion_Exception children is correct.

  • Loading branch information...
1 parent 26745d9 commit 1bac8c1ca3a5139ce43bfea04cd881b7d9ab2b4a @kiall kiall committed Mar 30, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 classes/Kohana/Minion/Exception.php
@@ -25,7 +25,14 @@ public static function handler(Exception $e)
{
try
{
- echo $e->format_for_cli();
+ if ($e instanceof Minion_Exception)
+ {
+ echo $e->format_for_cli();
+ }
+ else
+ {
+ echo Kohana_Exception::text($e);
+ }
$exit_code = $e->getCode();

0 comments on commit 1bac8c1

Please sign in to comment.