PDOException has no previous(), oh the consistency ...
This commit is contained in:
parent
f7dc07602b
commit
31f7afe56a
|
@ -547,7 +547,7 @@ class OC_Template{
|
||||||
$error_msg = '['.$exception->getCode().'] '.$error_msg;
|
$error_msg = '['.$exception->getCode().'] '.$error_msg;
|
||||||
}
|
}
|
||||||
$hint = $exception->getTraceAsString();
|
$hint = $exception->getTraceAsString();
|
||||||
while ($exception = $exception->previous()) {
|
while (method_exists($exception,'previous') && $exception = $exception->previous()) {
|
||||||
$error_msg .= '<br/>Caused by: ';
|
$error_msg .= '<br/>Caused by: ';
|
||||||
if ($exception->getCode()) {
|
if ($exception->getCode()) {
|
||||||
$error_msg .= '['.$exception->getCode().'] ';
|
$error_msg .= '['.$exception->getCode().'] ';
|
||||||
|
|
Loading…
Reference in New Issue