Fix typo in HTML Input Stream error domain

This commit is contained in:
iska
2014-10-05 19:15:44 +02:00
parent b0391dc7ba
commit 680a84f389
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
extern NSString * const HTMLStreamReaderErrorDomain;
extern NSString * const HTMLInputStreamReaderErrorDomain;
typedef NS_ENUM(NSUInteger, HTMLStreamReaderError)
{
+3 -3
View File
@@ -8,7 +8,7 @@
#import "HTMLInputStreamReaderErrors.h"
NSString * const HTMLStreamReaderErrorDomain = @"HTMLStreamReaderErrorDomain";
NSString * const HTMLInputStreamReaderErrorDomain = @"HTMLInputStreamReaderErrorDomain";
static inline NSString * ReasonStringForError(HTMLStreamReaderError error)
{
@@ -31,11 +31,11 @@ static inline NSString * ReasonStringForError(HTMLStreamReaderError error)
if (callback == nil) return;
NSDictionary *userInfo = @{
NSLocalizedDescriptionKey : [NSString stringWithFormat:@"HTML Stream parse error at [%ld]", location],
NSLocalizedDescriptionKey : [NSString stringWithFormat:@"HTML Input Stream error at [%ld]", location],
NSLocalizedFailureReasonErrorKey : ReasonStringForError(parseError)
};
NSError *error = [[NSError alloc] initWithDomain:HTMLStreamReaderErrorDomain
NSError *error = [[NSError alloc] initWithDomain:HTMLInputStreamReaderErrorDomain
code:parseError
userInfo:userInfo];
if (callback) callback(error);