Skip to content

#787 More error messages improvements#833

Merged
piotradamczyk5 merged 8 commits into
masterfrom
#787-more-error-messages-improvements
Jun 3, 2020
Merged

#787 More error messages improvements#833
piotradamczyk5 merged 8 commits into
masterfrom
#787-more-error-messages-improvements

Conversation

@piotradamczyk5
Copy link
Copy Markdown
Contributor

@piotradamczyk5 piotradamczyk5 commented Jun 2, 2020

Fixes #787

Test Plan

How do we know the code works?

Check error messages when YAML tree is bad (example in file flank-bad-yaml-formatting.yml)
Unit tests describe current behavior

Checklist

  • Unit tested
  • release_notes.md updated

@piotradamczyk5 piotradamczyk5 self-assigned this Jun 2, 2020
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 2, 2020

Codecov Report

Merging #833 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             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     

}

fun convertConfigurationErrorExceptions(treeParsingException: MarkedYAMLException): Throwable {
val errorMessageBuilder = ConfigurationErrorMessageBuilder
Copy link
Copy Markdown
Contributor

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 ;).

Copy link
Copy Markdown
Contributor Author

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
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

comments removed

@piotradamczyk5 piotradamczyk5 requested a review from jan-goral June 3, 2020 14:09
}

@Test
fun `Should properly build error message from MarkedYAMLException`() {
Copy link
Copy Markdown
Contributor

@adamfilipow92 adamfilipow92 Jun 3, 2020

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@piotradamczyk5 piotradamczyk5 merged commit ddb115f into master Jun 3, 2020
@piotradamczyk5 piotradamczyk5 deleted the #787-more-error-messages-improvements branch June 3, 2020 16:29
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.

More improvments in error messages

4 participants