Skip to content
Browse files

pass error to http callbacks

  • Loading branch information...
1 parent 8bcc03c commit 25cfde7355a4a359b6302cb5a1408269d9508ab3 @samsonjs committed Dec 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Marshmallows/MMHTTPRequest.m
View
2 Marshmallows/MMHTTPRequest.m
@@ -120,7 +120,7 @@ - (void) connection: (NSURLConnection *)connection didFailWithError: (NSError *)
[_responseData release];
_responseData = nil;
_statusCode = MMHTTPRequestStatusError;
- self.callback(self.statusCode, nil);
+ self.callback(self.statusCode, error);
}
- (void) connectionDidFinishLoading: (NSURLConnection *)connection

0 comments on commit 25cfde7

Please sign in to comment.
Something went wrong with that request. Please try again.