Fixes #157 - Bad error formatting string in check_error()

This commit is contained in:
Julius Trinkunas 2015-07-22 18:16:31 +03:00
parent 6d61b7ca7c
commit be506a9f7f

View File

@ -193,7 +193,7 @@ const int exitcode_app_crash = 254;
{ \
const char* msg = get_error_message(err); \
/*on_error("Error 0x%x: %s " #call, err, msg ? msg : "unknown.");*/ \
on_error(@"Error 0x%x: %s " #call, err, msg ? [NSString stringWithUTF8String:msg] : @"unknown."); \
on_error(@"Error 0x%x: %@ " #call, err, msg ? [NSString stringWithUTF8String:msg] : @"unknown."); \
} \
} while (false);