Explorar el Código

Fix format string argument ordering in method calling error string.

Ryan Olson hace 12 años
padre
commit
c3fe793c00
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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];
         }
     }