diff options
author | rowanbeentje <rowan@beent.je> | 2014-05-04 22:53:36 +0100 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2014-05-04 22:53:36 +0100 |
commit | bcad9a1827fffb4d132b50bbf1ada08ddde23f09 (patch) | |
tree | 5245266378af0894ec692a849a4377289f410e57 /Source/SPDatabaseDocument.m | |
parent | 6d33243e4a658d600e646a1b58afb363b9650cdc (diff) | |
download | sequelpro-bcad9a1827fffb4d132b50bbf1ada08ddde23f09.tar.gz sequelpro-bcad9a1827fffb4d132b50bbf1ada08ddde23f09.tar.bz2 sequelpro-bcad9a1827fffb4d132b50bbf1ada08ddde23f09.zip |
Fix string formatting warnings in NSRunAlertPanel by using the additional arguments
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 105d7105..330716c3 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -1784,7 +1784,7 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase"; // Check for errors, only displaying if the connection hasn't been terminated if ([mySQLConnection queryErrored]) { if ([mySQLConnection isConnected]) { - NSRunAlertPanel(@"Error", [NSString stringWithFormat:NSLocalizedString(@"An error occured while creating table syntax.\n\n: %@", @"Error shown when unable to show create table syntax"), [mySQLConnection lastErrorMessage]], @"OK", nil, nil); + NSRunAlertPanel(@"Error", @"%@", @"OK", nil, nil, [NSString stringWithFormat:NSLocalizedString(@"An error occured while creating table syntax.\n\n: %@", @"Error shown when unable to show create table syntax"), [mySQLConnection lastErrorMessage]]); } return; |