-
Notifications
You must be signed in to change notification settings - Fork 118
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
#787 More error messages improvements #833
Conversation
Codecov Report
@@ Coverage Diff @@
## master #833 +/- ##
============================================
- Coverage 80.14% 80.11% -0.03%
- Complexity 674 676 +2
============================================
Files 151 151
Lines 3087 3098 +11
Branches 443 443
============================================
+ Hits 2474 2482 +8
- Misses 336 337 +1
- Partials 277 279 +2 |
@@ -13,3 +14,8 @@ fun convertConfigurationErrorExceptions(missingParameterError: Exception, yaml: | |||
missingParameterError | |||
} | |||
} | |||
|
|||
fun convertConfigurationErrorExceptions(treeParsingException: MarkedYAMLException): Throwable { | |||
val errorMessageBuilder = ConfigurationErrorMessageBuilder |
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.
If ConfigurationErrorMessageBuilder.invoke
will be a top level function, this assignment wouldn't be needed ;).
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.
to make this consistent I leave this in ConfigurationErrorMessageBuilder, but changed to a single line and avoid assignment
@@ -0,0 +1,214 @@ | |||
# gcloud args match the official gcloud cli | |||
# See the docs for full gcloud details https://cloud.google.com/sdk/gcloud/reference/firebase/test/android/run |
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.
the comments are not necessary
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.
comments removed
…sages-improvements # Conflicts: # release_notes.md
@@ -78,6 +83,34 @@ Error node: { | |||
Assert.assertEquals(exceptedMessage, actualMessage) | |||
} | |||
|
|||
@Test | |||
fun `Should properly build error message from MarkedYAMLException`() { |
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.
Rest of function names starts from lower letter.
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.
fixed
Fixes #787
Test Plan
Check error messages when YAML tree is bad (example in file
flank-bad-yaml-formatting.yml
)Unit tests describe current behavior
Checklist