Permalink
Browse files

Fix ErrorDomain so that it represents the class that creates it

  • Loading branch information...
1 parent dd42bd0 commit 86ead14c30fbdb526cf18cdaab3f61e3c94f4223 @stig committed Jun 4, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 Classes/SBJsonParser.m
  2. +1 −1 Classes/SBJsonWriter.m
View
@@ -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
@@ -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;

0 comments on commit 86ead14

Please sign in to comment.