From be9b81160719e80235d466fbe4b345e9d75fab22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebel?= Date: Fri, 27 Jan 2012 15:32:37 +0100 Subject: [PATCH] better error handling when asking for the server status --- Sources/ConnectionWindow/ConnectionWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ConnectionWindow/ConnectionWindowController.m b/Sources/ConnectionWindow/ConnectionWindowController.m index abc131b3..8b234547 100644 --- a/Sources/ConnectionWindow/ConnectionWindowController.m +++ b/Sources/ConnectionWindow/ConnectionWindowController.m @@ -359,7 +359,7 @@ - (MODQuery *)showServerStatus if (serverStatus) { [resultsOutlineViewController.results addObjectsFromArray:[MODHelper convertForOutlineWithObject:serverStatus]]; } else if (mongoQuery.error) { - NSRunAlertPanel(@"Error", [mongoQuery.error localizedDescription], @"OK", nil, nil); + [resultsOutlineViewController.results addObjectsFromArray:[NSArray arrayWithObject:[NSDictionary dictionaryWithObjectsAndKeys:[mongoQuery.error localizedDescription], @"value", @"error", @"name", nil]]]; } [resultsOutlineViewController.myOutlineView reloadData]; }