MDL-52199 core_message: IMAP errors passed to task api

This commit is contained in:
Brendan Heywood 2016-11-14 22:00:55 +11:00
parent 0b8e0c374f
commit 3d8fbf39f7

View File

@ -125,9 +125,7 @@ class manager {
} catch (\Horde_Imap_Client_Exception $e) {
$message = $e->getMessage();
mtrace("Unable to connect to IMAP server. Failed with '{$message}'");
return false;
throw new \moodle_exception('imapconnectfailure', 'tool_messageinbound', '', null, $message);
}
}