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

better error message for empty expression #150

Merged
merged 3 commits into from
Nov 6, 2022
Merged

Conversation

Roger-luo
Copy link
Collaborator

julia> using MLStyle

julia> @match 1 begin
       end
ERROR: ArgumentError: empty match expression
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

@codecov
Copy link

codecov bot commented Nov 6, 2022

Codecov Report

Base: 62.64% // Head: 62.68% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (202b23f) compared to base (702a73b).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
+ Coverage   62.64%   62.68%   +0.04%     
==========================================
  Files          26       26              
  Lines        1582     1584       +2     
==========================================
+ Hits          991      993       +2     
  Misses        591      591              
Impacted Files Coverage Δ
src/AbstractPatterns/impl/RedyFlavoured.jl 61.56% <ø> (ø)
src/MatchImpl.jl 72.69% <100.00%> (+0.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Roger-luo Roger-luo merged commit 6c2485b into main Nov 6, 2022
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.

1 participant