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

Rethrow the error caught when builder fails #238

Merged
merged 3 commits into from
Sep 5, 2023
Merged

Conversation

ablaom
Copy link
Collaborator

@ablaom ablaom commented Sep 4, 2023

Closes #237

There is presently a throw-catch block to check a user-provided builder will successfully create a Flux model. This PR ensures that the exception causing the fail is ultimately thrown.

@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.61% ⚠️

Comparison is base (4fa632d) 92.06% compared to head (4e4d27a) 91.45%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #238      +/-   ##
==========================================
- Coverage   92.06%   91.45%   -0.61%     
==========================================
  Files          12       12              
  Lines         315      316       +1     
==========================================
- Hits          290      289       -1     
- Misses         25       27       +2     
Files Changed Coverage Δ
src/mlj_model_interface.jl 91.42% <0.00%> (-2.78%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ablaom
Copy link
Collaborator Author

ablaom commented Sep 4, 2023

@OkonSamuel Could you please review this? I've sent you an contributor invitation.

src/mlj_model_interface.jl Outdated Show resolved Hide resolved
@ablaom
Copy link
Collaborator Author

ablaom commented Sep 4, 2023

I've added a test.

Co-authored-by: Okon Samuel <39421418+OkonSamuel@users.noreply.github.com>
@ablaom
Copy link
Collaborator Author

ablaom commented Sep 4, 2023

I think we can ignore the nightly fail.

@OkonSamuel Are you happy for a merge?

@ablaom ablaom merged commit b449d80 into dev Sep 5, 2023
1 of 2 checks passed
@ablaom ablaom deleted the builder-error-clarification branch September 5, 2023 07:31
This was referenced Sep 11, 2023
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.

Need more informative error
3 participants