mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-67189 external: Catch Throwable in call_external_function
This commit is contained in:
parent
9df2f66fb4
commit
2603034e0a
@ -252,7 +252,7 @@ class external_api {
|
||||
|
||||
$response['error'] = false;
|
||||
$response['data'] = $result;
|
||||
} catch (Exception $e) {
|
||||
} catch (Throwable $e) {
|
||||
$exception = get_exception_info($e);
|
||||
unset($exception->a);
|
||||
$exception->backtrace = format_backtrace($exception->backtrace, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user