Merge branch 'MDL-76869-401' of https://github.com/cameron1729/moodle into MOODLE_401_STABLE

This commit is contained in:
Paul Holden 2023-02-03 14:58:27 +00:00
commit 79b9e6f36e

View File

@ -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];
}
}