-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add source file and module to config parsing error description #6087
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6087 +/- ##
==========================================
+ Coverage 70.20% 70.22% +0.01%
==========================================
Files 475 475
Lines 18147 18165 +18
==========================================
+ Hits 12741 12757 +16
- Misses 4470 4472 +2
Partials 936 936
Continue to review full report at Codecov.
|
// do not set a default deployer in a multi-config application. | ||
if len(configs) > 1 { | ||
return | ||
} | ||
// there always exists at least one config | ||
defaults.SetDefaultDeployer(configs[0]) | ||
defaults.SetDefaultDeployer(configs[0].SkaffoldConfig) |
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.
nit: Is it possilbe that configs[0] is nil? From the comment it doesn't seem possible, wanted to verify
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!
Brilliant! Thanks for this! ❤️ |
Fixes: #5456
Description
This PR adds additional context to config-parsing errors like the file name and module name(if defined) or the index of the config.
User facing changes (remove if N/A)
Before:
After: