(fix) properly terminate dictionary initialization

This commit is contained in:
Ludovic Marcotte 2016-06-14 08:31:37 -04:00
parent 72731e84f1
commit ff65ba88ad

View file

@ -553,7 +553,7 @@
values = [NSDictionary dictionaryWithObjectsAndKeys: values = [NSDictionary dictionaryWithObjectsAndKeys:
[user cn], @"Cn", [user cn], @"Cn",
[user systemEmail], @"SystemEmail"]; [user systemEmail], @"SystemEmail", nil];
reason = [values keysWithFormat: [self labelForKey: @"Cannot access resource: \"%{Cn} %{SystemEmail}\""]]; reason = [values keysWithFormat: [self labelForKey: @"Cannot access resource: \"%{Cn} %{SystemEmail}\""]];
return [NSException exceptionWithHTTPStatus:403 reason: reason]; return [NSException exceptionWithHTTPStatus:403 reason: reason];
} }