mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-76869-master' of https://github.com/cameron1729/moodle
This commit is contained in:
commit
44d140d20c
@ -230,7 +230,7 @@ class create_gradecategories extends external_api {
|
||||
} catch (\Exception $e) {
|
||||
// If the submitted data was broken for any reason.
|
||||
$warnings['database'] = $e->getMessage();
|
||||
$transaction->rollback();
|
||||
$transaction->rollback($e);
|
||||
return ['warnings' => $warnings];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user