Commit 7a1949fe by Carsten Brandt

improved traceability of errors thrown in toString() methods

parent 27658e56
...@@ -45,7 +45,7 @@ abstract class BaseMessage extends Object implements MessageInterface ...@@ -45,7 +45,7 @@ abstract class BaseMessage extends Object implements MessageInterface
try { try {
return $this->toString(); return $this->toString();
} catch (\Exception $e) { } catch (\Exception $e) {
trigger_error($e->getMessage()); trigger_error($e->getMessage() . "\n\n" . $e->getTraceAsString());
return ''; return '';
} }
} }
......
...@@ -130,7 +130,7 @@ class ActiveField extends Component ...@@ -130,7 +130,7 @@ class ActiveField extends Component
try { try {
return $this->render(); return $this->render();
} catch (\Exception $e) { } catch (\Exception $e) {
trigger_error($e->getMessage()); trigger_error($e->getMessage() . "\n\n" . $e->getTraceAsString());
return ''; return '';
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment