-
Notifications
You must be signed in to change notification settings - Fork 246
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
Improve duplicate name error message on container create #190
Conversation
LGTM |
@marcov I think you need to update the ffjson files. If you run make does it recompile them? |
LGTM (given the CI passes) Note that this PR does not yet fully implement #189 as there are other error cases that could be improved in a similar fashion (see https://github.com/containers/storage/blob/master/errors.go). Such cases can be duplicate ID, or layer in use, etc. I suggest looking at the code using the errors and see what can be done (in follow-up PRs). |
@marcov could you |
@rhatdan, @nalind: I tried to run The CI logs make this look more like an issue in the CI env:
|
I think the makefile wants to generate an updated version. If you run make locally does it execute the ffjson command? |
OK I ran it locally and it attempted the compile and changed nothing. But we still need a new file. Just modify a comment in the generated file and then commit and push, and the problem should be fixed. |
Signed-off-by: Marco Vedovati <[email protected]> Make the error message more informative by specifying the duplicate name and the existing container ID.
OK did like you said. |
Thanks Lets see if it passes tests. |
Woo Hoo, the hack worked. |
LGTM, merging. |
Make the error message more informative by specifying the duplicate name
and the existing container ID. Implements #189.
Opening this PR as asked by @rhatdan and agreed with @vrothberg