Procházet zdrojové kódy

Fix format string argument ordering in method calling error string.

Ryan Olson před 12 roky
rodič
revize
c3fe793c00
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {
         // Bummer...
         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];
         }
     }