Kaynağa Gözat

Fix format string argument ordering in method calling error string.

Ryan Olson 12 yıl önce
ebeveyn
işleme
c3fe793c00
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Classes/Utility/FLEXRuntimeUtility.m

+ 1 - 1
Classes/Utility/FLEXRuntimeUtility.m

@@ -353,7 +353,7 @@ const unsigned int kFLEXNumberOfImplicitArgs = 2;
     } @catch (NSException *exception) {
     } @catch (NSException *exception) {
         // Bummer...
         // Bummer...
         if (error) {
         if (error) {
-            NSDictionary *userInfo = @{ NSLocalizedDescriptionKey : [NSString stringWithFormat:@"Exception thrown while performing selector %@ on object %@", object, NSStringFromSelector(selector)]};
+            NSDictionary *userInfo = @{ NSLocalizedDescriptionKey : [NSString stringWithFormat:@"Exception thrown while performing selector %@ on object %@", NSStringFromSelector(selector), object]};
             *error = [NSError errorWithDomain:FLEXRuntimeUtilityErrorDomain code:FLEXRuntimeUtilityErrorCodeInvocationFailed userInfo:userInfo];
             *error = [NSError errorWithDomain:FLEXRuntimeUtilityErrorDomain code:FLEXRuntimeUtilityErrorCodeInvocationFailed userInfo:userInfo];
         }
         }
     }
     }