Better error messages when using unsupported compose file syntax #651
Better error messages when using unsupported compose file syntax #651
Conversation
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
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.
Sounds good 👍
Codecov Report
@@ Coverage Diff @@
## master #651 +/- ##
==========================================
- Coverage 72.19% 72.14% -0.05%
==========================================
Files 51 52 +1
Lines 2658 2675 +17
==========================================
+ Hits 1919 1930 +11
- Misses 490 497 +7
+ Partials 249 248 -1
Continue to review full report at Codecov.
|
ad9e6f6
to
9ad56e0
Compare
Please sign your commits following these rules: $ git clone -b "composefile-syntax-improved-error-messages" git@github.com:jcsirot/docker-app.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354106912
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
a32ff90
to
4e48f0f
Compare
@jcsirot can you squash? |
4e48f0f
to
e1f8b4d
Compare
Replace errors.New by errors.Errorf since the linter complained about it Fix typo in internal/commands/push.go Signed-off-by: Jean-Christophe Sirot <jean-christophe.sirot@docker.com>
e1f8b4d
to
79c5a88
Compare
@silvin-lubecki done |
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.
@jcsirot I see that the errors are capitalised which I thought was against Go best practices.
@silvin-lubecki what do we do in the CLI?
Signed-off-by: Jean-Christophe Sirot <jean-christophe.sirot@docker.com>
You are right @chris-crone nice catch. Indeed the docker/cli error messages are not capitalized. |
@chris-crone @silvin-lubecki Here the error message is composed of several sentences ending with ponctuation. So maybe we should keep it capitalised? |
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
- What I did
Docker App prints a more specific error messages when the template uses one of these compose file syntax
- A picture of a cute animal (not mandatory but encouraged)