diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-14 14:28:04 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-11-14 14:28:04 +0100 |
commit | ad757805ca3c6556dd912881d5469b97b1f66171 (patch) | |
tree | a24946c1eef99ed6ddf36293a4551e1710c95533 /lib/private/Support/CrashReport | |
parent | 2a39ac043e1bcb42111e7f442814d6f11522365b (diff) | |
download | nextcloud-server-ad757805ca3c6556dd912881d5469b97b1f66171.tar.gz nextcloud-server-ad757805ca3c6556dd912881d5469b97b1f66171.zip |
Pass the exception context to the crash reporter
This should allow better reports as often the app id is passed
as context. While this is not used right now, I'd like to have this
for NC13 as adding it later will break the interface for existing apps
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Support/CrashReport')
-rw-r--r-- | lib/private/Support/CrashReport/Registry.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Support/CrashReport/Registry.php b/lib/private/Support/CrashReport/Registry.php index bdf18b492fd..e90e82958d1 100644 --- a/lib/private/Support/CrashReport/Registry.php +++ b/lib/private/Support/CrashReport/Registry.php @@ -45,10 +45,11 @@ class Registry implements IRegistry { * Delegate crash reporting to all registered reporters * * @param Exception|Throwable $exception + * @param array $context */ - public function delegateReport($exception) { + public function delegateReport($exception, array $context = []) { foreach ($this->reporters as $reporter) { - $reporter->report($exception); + $reporter->report($exception, $context); } } |