Skip to content

Descriptive error handling additions#24

Merged
ianpartridge merged 2 commits intomasterfrom
issue.725
Apr 10, 2018
Merged

Descriptive error handling additions#24
ianpartridge merged 2 commits intomasterfrom
issue.725

Conversation

@ShihabMehboob
Copy link
Copy Markdown
Contributor

Added better error handling (descriptions) to avoid using 'unknown' in errors which could be vague for users, especially those getting the error when the client wasn't connected to the server.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 10, 2018

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   71.96%   71.96%           
=======================================
  Files           2        2           
  Lines         132      132           
=======================================
  Hits           95       95           
  Misses         37       37
Flag Coverage Δ
#KituraKit 71.96% <0%> (ø) ⬆️
Impacted Files Coverage Δ
Sources/KituraKit/RequestErrorExtension.swift 27.27% <0%> (ø) ⬆️
Sources/KituraKit/Client.swift 76.03% <0%> (ø) ⬆️

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 8ce52cd...23da389. Read the comment docs.

@ianpartridge
Copy link
Copy Markdown
Contributor

These are a definite improvement!

Can we guide the user a bit more about how they might handle the errors if they see them?

@ShihabMehboob
Copy link
Copy Markdown
Contributor Author

Sure, added brief guidance on how the user may handle the errors.

@ianpartridge ianpartridge merged commit d3b465f into master Apr 10, 2018
@ianpartridge ianpartridge deleted the issue.725 branch April 10, 2018 12:08
@ianpartridge
Copy link
Copy Markdown
Contributor

Nice.

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