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

capi: Reporting error code and message #772

Merged
merged 5 commits into from
Mar 31, 2021
Merged

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Mar 25, 2021

A simpler alternative to #764, not introducing any error codes on C++ side for now.

include/fizzy/fizzy.h Outdated Show resolved Hide resolved
include/fizzy/fizzy.h Outdated Show resolved Hide resolved
include/fizzy/fizzy.h Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 25, 2021

Codecov Report

Merging #772 (a62544f) into master (2f102ae) will decrease coverage by 0.02%.
The diff coverage is 98.57%.

@@            Coverage Diff             @@
##           master     #772      +/-   ##
==========================================
- Coverage   99.25%   99.23%   -0.03%     
==========================================
  Files          77       77              
  Lines       11744    11886     +142     
==========================================
+ Hits        11657    11795     +138     
- Misses         87       91       +4     
Flag Coverage Δ
rust 99.86% <100.00%> (+<0.01%) ⬆️
spectests 90.54% <ø> (ø)
unittests 99.19% <98.49%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/fizzy/capi.cpp 97.83% <90.69%> (-1.11%) ⬇️
bindings/rust/src/lib.rs 99.86% <100.00%> (+<0.01%) ⬆️
test/unittests/capi_test.cpp 99.88% <100.00%> (+0.01%) ⬆️
test/utils/fizzy_c_engine.cpp 100.00% <100.00%> (ø)

@gumb0 gumb0 force-pushed the rich-error-reporting-simple branch 9 times, most recently from 3ee2e20 to d1f3437 Compare March 29, 2021 11:02
lib/fizzy/capi.cpp Outdated Show resolved Hide resolved
lib/fizzy/capi.cpp Outdated Show resolved Hide resolved
@gumb0 gumb0 force-pushed the rich-error-reporting-simple branch from d1f3437 to b43b605 Compare March 29, 2021 13:24
include/fizzy/fizzy.h Outdated Show resolved Hide resolved
@gumb0 gumb0 force-pushed the rich-error-reporting-simple branch 2 times, most recently from c4d8a01 to c5ffc19 Compare March 30, 2021 15:51
Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

I'm fine with either options for the error enums.

@gumb0 gumb0 marked this pull request as ready for review March 30, 2021 15:56
@gumb0 gumb0 requested a review from chfast March 30, 2021 16:26
include/fizzy/fizzy.h Outdated Show resolved Hide resolved
include/fizzy/fizzy.h Outdated Show resolved Hide resolved
lib/fizzy/capi.cpp Outdated Show resolved Hide resolved
lib/fizzy/capi.cpp Outdated Show resolved Hide resolved
@gumb0 gumb0 force-pushed the rich-error-reporting-simple branch 2 times, most recently from 528b0dd to 4a0e275 Compare March 31, 2021 12:33
lib/fizzy/capi.cpp Outdated Show resolved Hide resolved
lib/fizzy/capi.cpp Outdated Show resolved Hide resolved
@gumb0 gumb0 force-pushed the rich-error-reporting-simple branch from 4a0e275 to a62544f Compare March 31, 2021 13:58
@gumb0 gumb0 merged commit faddd97 into master Mar 31, 2021
@gumb0 gumb0 deleted the rich-error-reporting-simple branch March 31, 2021 14:47
This was referenced Mar 31, 2021
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