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

RequestError is now a type of Error #31

Merged
merged 1 commit into from
Jul 8, 2020
Merged

RequestError is now a type of Error #31

merged 1 commit into from
Jul 8, 2020

Conversation

o-nnerb
Copy link
Contributor

@o-nnerb o-nnerb commented Jul 8, 2020

As mentioned in #30, the actual implementation of RequestError was removing other types of errors like the URLError, so the application cannot cast and verify what error occurred exactly. Now, the onError callback will have as a parameter a value of Error type and the application can cast it to RequestError or to URLError.

@codecov-commenter
Copy link

Codecov Report

Merging #31 into master will decrease coverage by 0.47%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
- Coverage   86.03%   85.55%   -0.48%     
==========================================
  Files          21       22       +1     
  Lines         716      720       +4     
==========================================
  Hits          616      616              
- Misses        100      104       +4     
Impacted Files Coverage Δ
Sources/Request/Helpers/RequestError.swift 0.00% <0.00%> (ø)
Tests/RequestTests/RequestTests.swift 93.28% <50.00%> (ø)
Sources/Request/Request/Extra/RequestChain.swift 100.00% <100.00%> (ø)
Sources/Request/Request/Extra/RequestGroup.swift 100.00% <100.00%> (ø)
Sources/Request/Request/Request.swift 93.26% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 678327f...5af244c. Read the comment docs.

@carson-katri
Copy link
Owner

LGTM 👍

@carson-katri carson-katri merged commit 8285c5c into carson-katri:master Jul 8, 2020
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.

3 participants