mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Api: More details in error message if mail can't be merged & sent
This commit is contained in:
parent
b0b9feab91
commit
eed5e817d5
@ -2641,7 +2641,12 @@ abstract class Merge
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
throw new Api\Exception("Unable to send email", 100, $e);
|
||||
$msg = "Unable to send email\n" . $e->getMessage();
|
||||
if($e->details)
|
||||
{
|
||||
$msg .= "\n" . $e->details;
|
||||
}
|
||||
throw new Api\Exception($msg, 100, $e);
|
||||
}
|
||||
// Save to VFS so we can link to entry
|
||||
if($link || $download)
|
||||
|
Loading…
Reference in New Issue
Block a user