Permalink
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...
1 parent b3e792b commit 3b89216c24e28c57f4e69cf1e4a902885add2fb5 @Panman8201 Panman8201 committed with damyon Apr 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) {

0 comments on commit 3b89216

Please sign in to comment.