Skip to content

Commit

Permalink
better error handling when asking for the server status
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Jan 27, 2012
1 parent 815d1fb commit be9b811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ConnectionWindow/ConnectionWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit be9b811

Please sign in to comment.