mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-76869-401' of https://github.com/cameron1729/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
79b9e6f36e
@ -231,7 +231,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