Skip to content

Commit

Permalink
Slightly saner error handling (thanks AppCode!)
Browse files Browse the repository at this point in the history
  • Loading branch information
stig committed Apr 25, 2014
1 parent 852f607 commit e628af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/objc/SBJson4StreamWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ - (BOOL)writeValue:(id)o {
case 31: return "\\u001f";
case 34: return "\\\"";
case 92: return "\\\\";
default:
[NSException raise:@"Illegal escape char" format:@"-->%c<-- is not a legal escape character", c];
}
NSLog(@"FUTFUTFUT: -->'%c'<---", c);
return "FUTFUTFUT";
}

- (BOOL)writeString:(NSString*)string {
Expand Down

0 comments on commit e628af0

Please sign in to comment.