From 680a84f3890be1d17b3bdbf08068888034ef1ad4 Mon Sep 17 00:00:00 2001 From: iska Date: Sun, 5 Oct 2014 19:15:44 +0200 Subject: [PATCH] Fix typo in HTML Input Stream error domain --- HTMLKit/HTMLInputStreamReaderErrors.h | 2 +- HTMLKit/HTMLInputStreamReaderErrors.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HTMLKit/HTMLInputStreamReaderErrors.h b/HTMLKit/HTMLInputStreamReaderErrors.h index 41a5e9a..059418b 100644 --- a/HTMLKit/HTMLInputStreamReaderErrors.h +++ b/HTMLKit/HTMLInputStreamReaderErrors.h @@ -8,7 +8,7 @@ #import -extern NSString * const HTMLStreamReaderErrorDomain; +extern NSString * const HTMLInputStreamReaderErrorDomain; typedef NS_ENUM(NSUInteger, HTMLStreamReaderError) { diff --git a/HTMLKit/HTMLInputStreamReaderErrors.m b/HTMLKit/HTMLInputStreamReaderErrors.m index f900c45..942c670 100644 --- a/HTMLKit/HTMLInputStreamReaderErrors.m +++ b/HTMLKit/HTMLInputStreamReaderErrors.m @@ -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);