Skip to content

update logic for printing exception messages for invalid buildspecs#1340

Merged
shahzebsiddiqui merged 1 commit intodevelfrom
remove_print_traceback_during_validation_error
Jan 13, 2023
Merged

update logic for printing exception messages for invalid buildspecs#1340
shahzebsiddiqui merged 1 commit intodevelfrom
remove_print_traceback_during_validation_error

Conversation

@shahzebsiddiqui
Copy link
Copy Markdown
Member

No description provided.

it doesn't print the exception message automatically instead we call method
get_exception() to retrieve exception message.

During invocation of BuildspecParser we can catch the base exception BuildspecError
instead of catching every type of exception that is a subclass of BuildspecError

Make use of print instead of console.print to print exception message due to errors
that can occur when printing exception message
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2023

Codecov Report

Base: 71.41% // Head: 71.38% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (577abb1) compared to base (ea1047c).
Patch coverage: 66.67% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1340      +/-   ##
==========================================
- Coverage   71.41%   71.38%   -0.03%     
==========================================
  Files          57       57              
  Lines        6093     6098       +5     
  Branches     1081     1084       +3     
==========================================
+ Hits         4351     4353       +2     
- Misses       1740     1743       +3     
  Partials        2        2              
Impacted Files Coverage Δ
buildtest/cli/buildspec.py 94.58% <62.50%> (-0.29%) ⬇️
buildtest/exceptions.py 51.85% <75.00%> (-1.99%) ⬇️

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.

@shahzebsiddiqui shahzebsiddiqui merged commit a63bc68 into devel Jan 13, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the remove_print_traceback_during_validation_error branch January 13, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant