From 818233535f03308a256bd47e484a8fb6da8b39c8 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 6 Jan 2017 16:17:05 -0500 Subject: [PATCH] Improve error messages around draft attachments (cont'd) --- UI/MailerUI/UIxMailEditor.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UI/MailerUI/UIxMailEditor.m b/UI/MailerUI/UIxMailEditor.m index 767351b0b..1fa264bfe 100644 --- a/UI/MailerUI/UIxMailEditor.m +++ b/UI/MailerUI/UIxMailEditor.m @@ -661,10 +661,9 @@ static NSArray *infoKeys = nil; { NSDictionary *d; - d = [NSDictionary dictionaryWithObjectsAndKeys: msg, @"textStatus", nil]; + d = [NSDictionary dictionaryWithObjectsAndKeys: msg, @"message", nil]; - return [self responseWithStatus: 500 - andString: [d jsonRepresentation]]; + return [self responseWithStatus: 500 andJSONRepresentation: d]; } /* attachment helper */