MDL-38525: Assignment - print exception message when assignment upgrade fails.

Change to use getMessage() from the Exception class will prevent "{$a}" when
$e->error is null.
This commit is contained in:
Ryan Panning
2013-04-10 16:18:31 +08:00
committed by Damyon Wiese
parent b3e792b946
commit 3b89216c24
+1 -1
View File
@@ -257,7 +257,7 @@ class assign_upgrade_manager {
} catch (Exception $exception) {
$rollback = true;
$log .= get_string('conversionexception', 'mod_assign', $exception->error);
$log .= get_string('conversionexception', 'mod_assign', $exception->getMessage());
}
if ($rollback) {