Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix ErrorDomain so that it represents the class that creates it

  • Loading branch information...
commit 86ead14c30fbdb526cf18cdaab3f61e3c94f4223 1 parent dd42bd0
@stig authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  Classes/SBJsonParser.m
  2. +1 −1  Classes/SBJsonWriter.m
View
2  Classes/SBJsonParser.m
@@ -95,7 +95,7 @@ - (id)objectWithString:(NSString*)repr error:(NSError**)error_ {
if (error_) {
NSDictionary *ui = [NSDictionary dictionaryWithObjectsAndKeys:error, NSLocalizedDescriptionKey, nil];
- *error_ = [NSError errorWithDomain:@"org.brautaset.json.parser.ErrorDomain" code:0 userInfo:ui];
+ *error_ = [NSError errorWithDomain:@"org.brautaset.SBJsonParser.ErrorDomain" code:0 userInfo:ui];
}
return nil;
View
2  Classes/SBJsonWriter.m
@@ -71,7 +71,7 @@ - (NSString*)stringWithObject:(id)value error:(NSError**)error_ {
if (error_) {
NSDictionary *ui = [NSDictionary dictionaryWithObjectsAndKeys:error, NSLocalizedDescriptionKey, nil];
- *error_ = [NSError errorWithDomain:@"org.brautaset.json.parser.ErrorDomain" code:0 userInfo:ui];
+ *error_ = [NSError errorWithDomain:@"org.brautaset.SBJsonWriter.ErrorDomain" code:0 userInfo:ui];
}
return nil;
Please sign in to comment.
Something went wrong with that request. Please try again.