summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-11-10 10:18:33 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-11-10 10:35:08 +0100
commit979b291a36caabd28f21d2d4b10b431f5f8ebdd3 (patch)
tree3d28eba5b1f5f8f73d1ccb86eb2b82956d3c9c21 /lib/private/Template
parent78e1f228933ca3b67a628deff532704d6c7caba8 (diff)
downloadnextcloud-server-979b291a36caabd28f21d2d4b10b431f5f8ebdd3.tar.gz
nextcloud-server-979b291a36caabd28f21d2d4b10b431f5f8ebdd3.zip
Show the full trace of an exception
Because often we catch the exception at some point and then the trace is misleading. What's really interesting is the trace of the *previous* exception. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Template')
-rw-r--r--lib/private/Template/Base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Template/Base.php b/lib/private/Template/Base.php
index 04d03b6e6f5..21f2b33cfa3 100644
--- a/lib/private/Template/Base.php
+++ b/lib/private/Template/Base.php
@@ -31,6 +31,7 @@
namespace OC\Template;
use OCP\Defaults;
+use Throwable;
class Base {
private $template; // The template
@@ -92,7 +93,7 @@ class Base {
/**
* Assign variables
* @param string $key key
- * @param array|bool|integer|string $value value
+ * @param array|bool|integer|string|Throwable $value value
* @return bool
*
* This function assigns a variable. It can be accessed via $_[$key] in