-
Notifications
You must be signed in to change notification settings - Fork 1
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
Propagate compile diagnostics #316
Conversation
2ccf1cc
to
9014cdc
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #316 +/- ##
=====================================
Coverage 93.3% 93.3%
=====================================
Files 1111 1111
Lines 24182 24193 +11
Branches 79 79
=====================================
+ Hits 22570 22581 +11
Misses 1597 1597
Partials 15 15
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
); | ||
} | ||
|
||
#[test] | ||
fn extract_error_from_error_non_gen_err() { | ||
assert_eq!( | ||
CommonError::from_scrypto_compile_error( | ||
"invalid_manifest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"this is a super duper invalid manifest" is more clear a test string IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because at first I thought this was suppose to match some expected enum value or so
Propagate pretty diagnostics error for CompileError. This will help dApp developers to understand better the reason when a manifest is invalid.