Added a space in the description of the SUNoFeedURL exception becuase it led me to believe that the value of SUFeedURLKey was actually @"SUFeedURLKey" and not @"SUFeedURL".

This commit is contained in:
Fraser Speirs committed 2009-08-27 11:29:15 +01:00
1 parent 6c968489eb
commit ffc44bb089
1 file changed
+1 -1
+1 -1
View File
@@ -294,7 +294,7 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
// A value in the user defaults overrides one in the Info.plist (so preferences panels can be created wherein users choose between beta / release feeds).
NSString *appcastString = [host objectForKey:SUFeedURLKey];
if (!appcastString) // Can't find an appcast string!
[NSException raise:@"SUNoFeedURL" format:@"You must specify the URL of the appcast as the SUFeedURLKey in either the Info.plist or the user defaults!"];
[NSException raise:@"SUNoFeedURL" format:@"You must specify the URL of the appcast as the SUFeedURL key in either the Info.plist or the user defaults!"];
NSCharacterSet* quoteSet = [NSCharacterSet characterSetWithCharactersInString: @"\"\'"]; // Some feed publishers add quotes; strip 'em.
return [NSURL URLWithString:[appcastString stringByTrimmingCharactersInSet:quoteSet]];
}