Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38525: Assignment - print exception message when assignment upgra…

…de fails.

Change to use getMessage() from the Exception class will prevent "{$a}" when
$e->error is null.
  • Loading branch information...
commit 3b89216c24e28c57f4e69cf1e4a902885add2fb5 1 parent b3e792b
Ryan Panning authored damyon committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assign/upgradelib.php
View
2  mod/assign/upgradelib.php
@@ -257,7 +257,7 @@ public function upgrade_assignment($oldassignmentid, & $log) {
} catch (Exception $exception) {
$rollback = true;
- $log .= get_string('conversionexception', 'mod_assign', $exception->error);
+ $log .= get_string('conversionexception', 'mod_assign', $exception->getMessage());
}
if ($rollback) {
Please sign in to comment.
Something went wrong with that request. Please try again.