aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPQueryController.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index d34655e7..e1c85e68 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -941,8 +941,15 @@ static SPQueryController *sharedQueryController = nil;
*/
- (void)_addMessageToConsole:(NSString *)message connection:(NSString *)connection isError:(BOOL)error
{
- SPConsoleMessage *consoleMessage = [SPConsoleMessage consoleMessageWithMessage:[[[message stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] stringByReplacingOccurrencesOfString:@"\n" withString:@" "] stringByAppendingString:@";"] date:[NSDate date] connection:connection];
+ NSString *messageTemp = [[message stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] stringByReplacingOccurrencesOfString:@"\n" withString:@" "];
+
+ // Only append a semi-colon (;) if the supplied message is not an error
+ if (!error) {
+ messageTemp = [messageTemp stringByAppendingString:@";"];
+ }
+ SPConsoleMessage *consoleMessage = [SPConsoleMessage consoleMessageWithMessage:messageTemp date:[NSDate date] connection:connection];
+
[consoleMessage setIsError:error];
[messagesFullSet addObject:consoleMessage];