Fix exception throwing

This commit is contained in:
Robin Appelman 2017-08-17 15:59:30 +02:00
commit 79b69c635b

View file

@ -14,7 +14,7 @@ class Exception extends \Exception {
$message .= ' for ' . $path;
}
return new Exception($message, $error);
return new Exception($message, is_string($error) ? 0 : $error);
}
/**