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 f8ddbd2 commit c6d7956e5503192702cf8d8e4cd01306b6ce18b2 @Panman8201 Panman8201 committed with damyon Apr 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/upgradelib.php
@@ -301,7 +301,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 c6d7956

Please sign in to comment.