Improve error messages around draft attachments

(cont'd)
pull/232/head
Francis Lachapelle 2017-01-06 16:17:05 -05:00
parent 65e3fe978c
commit 818233535f
1 changed files with 2 additions and 3 deletions

View File

@ -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 */