|
|
|
|
|
|
|
|
|
|
xen-api
RE: [Xen-API] [PATCH]Make error msg more readable when sr-create returns
Hi,
> Make error msg more readable when sr-create returns
> sr_backend_failure.I think it is a bug here.
The current system is very ugly but it's working as intended here. The idea is
that each error has a distinct code (the first string) e.g.
SR_BACKEND_FAILURE_xx
And then for i18n we can have a simple table mapping
Unique code -> message with {1} numbered {2} holes for arguments.
> before:
> # xe sr-create name-label=test type=iso device-
> config:location=/var/opt/xen/iso_import/test device-
> config:legacy_mode=true content-type=iso Error code:
> SR_BACKEND_FAILURE_226 Error parameters: , Invalid local path,
This definitely looks ugly. I'd like to fix it in the CLI by catching all
exceptions SR_BACKEND_FAILURE_* and writing a more intelligent pretty-printer.
Cheers,
Dave
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
|
|
|
|