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 4e7aef7 commit 1fbe4f46ba2e7cc4e57419748deff5ce30edfe07 @Panman8201 Panman8201 committed with damyon Apr 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/upgradelib.php
@@ -270,7 +270,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 1fbe4f4

Please sign in to comment.