Commit 81b0838d authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Improve error message when image meta file exists

parent 385780c3
......@@ -404,8 +404,10 @@ class image_register(_init_image, _optional_json):
if pclient and not self['metafile_force']:
raiseCLIError('Metadata file %s:%s already exists' % (
container, meta_path))
'Metadata file %s:%s already exists, abort' % (
container, meta_path),
details=['Registration ABORTED', 'Try -f to overwrite'])
except ClientError as ce:
if ce.status != 404:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment