Commits

Bill Garrison committed 58f2966

Fixes #1 logging bug in -hasExtendedAttributeWithName

Comments (0)

Files changed (1)

NSURL+SOExtendedAttributes.m

     NSError *error = nil;
     NSArray *attributeNames = [self namesOfExtendedAttributesWithError:&error];
     
-    if (attributeNames)
+    if (!attributeNames)
     {
-        NSLog (@"ERROR: Could get list of attributes names: %@; %@", error, [error userInfo]);
+        NSLog (@"ERROR: Could not get list of attributes names: %@; %@", error, [error userInfo]);
     }
     return [attributeNames containsObject:name];
 }