From f29066bc86ea823cfb4a82e55788492da65f1325 Mon Sep 17 00:00:00 2001 From: leithoff Date: Fri, 13 May 2016 12:26:21 +0200 Subject: [PATCH] give more info on failed attachment retrieval --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 31bdf48e58..14238fddc0 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -5748,7 +5748,7 @@ class Mail if ($ext && stripos($filename,'.')===false && stripos($filename,$ext)===false) $filename = trim($filename).'.'.$ext; if (!$part) { - throw new Exception\WrongParameter("Error: Could not fetch attachment for Uid=$_uid, PartId=$_partID, WinMailNr=$_winmail_nr, folder=$_folder"); + throw new Exception\WrongParameter("Error: Could not fetch attachment for Uid=".array2string($_uid).", PartId=$_partID, WinMailNr=$_winmail_nr, folder=$_folder"); } $attachmentData = array( 'type' => $structure_mime,