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:
committed by
Damyon Wiese
parent
b3e792b946
commit
3b89216c24
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user