Skip to content

Commit

Permalink
MDL-76869 gradebook: Pass exception to rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron1729 committed Jan 12, 2023
1 parent b8b905c commit 6bf955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/classes/external/create_gradecategories.php
Expand Up @@ -231,7 +231,7 @@ public static function create_gradecategories_from_data(int $courseid, array $ca
} catch (\Exception $e) {
// If the submitted data was broken for any reason.
$warnings['database'] = $e->getMessage();
$transaction->rollback();
$transaction->rollback($e);
return ['warnings' => $warnings];
}
}
Expand Down

0 comments on commit 6bf955c

Please sign in to comment.