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
try {
return $this->toString();
} catch (\Exception $e) {
trigger_error($e->getMessage());
trigger_error($e->getMessage() . "\n\n" . $e->getTraceAsString());
return '';
}
}
......
......@@ -130,7 +130,7 @@ class ActiveField extends Component
try {
return $this->render();
} catch (\Exception $e) {
trigger_error($e->getMessage());
trigger_error($e->getMessage() . "\n\n" . $e->getTraceAsString());
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