Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add responseErrorFromObject to create detailed error using response object #16

Merged
merged 5 commits into from
Mar 17, 2015

Conversation

ishkawa
Copy link
Owner

@ishkawa ishkawa commented Mar 17, 2015

Resolves #15.

@ishkawa ishkawa modified the milestone: 0.4 Mar 17, 2015
let error = NSError(domain: APIKitErrorDomain, code: statusCode, userInfo: userInfo)
dispatch_async(mainQueue, { handler(.Failure(Box(error))) })
if !contains(self.acceptableStatusCodeRange, statusCode) {
var error: NSError = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: let can be used here.

@ikesyo
Copy link
Collaborator

ikesyo commented Mar 17, 2015

Looks good ✨

@ishkawa
Copy link
Owner Author

ishkawa commented Mar 17, 2015

Thanks for reviewing carefully! I have fixed code you pointed out and will merge this into develop/0.4.

ishkawa added a commit that referenced this pull request Mar 17, 2015
Add `responseErrorFromObject` to create detailed error using response object
@ishkawa ishkawa merged commit d65dc02 into develop/0.4 Mar 17, 2015
@ishkawa ishkawa deleted the feature/detail-error branch March 17, 2015 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants