Browse Source

Give a little more info than "borken"

AD7six 11 years ago
parent
commit
6b7ec116a0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Error/Debugger.php

+ 2 - 1
src/Error/Debugger.php

@@ -516,7 +516,8 @@ class Debugger
                     substr(static::_array($var->__debugInfo(), $depth - 1, $indent), 1, -1) .
                     $end . '}';
             } catch (Exception $e) {
-                return $out . "\n(unable to export object)\n }";
+                $message = $e->getMessage();
+                return $out . "\n(unable to export object: $message)\n }";
             }
         }