OpenNebula / addon-appmarket

AppMarket builds a centralized catalog of cloud applications
http://opennebula.org/addons:addons
Apache License 2.0
10 stars 13 forks source link

CLI error messages are not friendly #35

Open jfontan opened 10 years ago

jfontan commented 10 years ago

The cli should parse the error and give something more friendly that this:

$ appmarket create ima.json -u default -p default
{
  "message": "KEY: publisher not allowed; SCHEMA: typeobjectpropertiesvisitstypenulldefault0statustypestringenuminitreadyconvertingdownloadingpublishingerrordefaultinitnametypestringrequiredtruesource_typetypestringenumovadescriptiontypestringrequiredtrueos-archtypestringdefaultx86_64opennebula_templatetypestringsourcetypestringformaturishort_descriptiontypestringrequiredtrueformattypestringenumrawvmdkqcow2vdidefaultrawos-idtypestringdefaultlogotypestringformaturidefault/img/logos/default.pngfilestypearrayitemstypeobjectpropertiesnametypestringtypetypestringenumOSCDROMDATABLOCKdefaultOSos-archtypestringdefaultx86_64formattypestringenumrawvmdkqcow2vdidefaultrawurltypestringformaturios-idtypestringdefaulthypervisortypestringenumVMWAREXENKVMalldefaultallsizetypestringrequiredtrueos-releasetypestringdefaultmd5typestringdev_prefixtypestringcompressiontypestringenumbz2gzipnonedefaultnonesha1typestringdrivertypestringos-releasetypestringdefaulthypervisortypestringenumVMWAREXENKVMalldefaultalltagstypearraydefaultitemstypestringversiontypestringdefault1.0downloadstypenulldefault0opennebula_versiontypestringdefaultallcatalogtypestringdefaultcommunity"
}
carlosms commented 8 years ago

Adding to this: the same kind of json error is shown in the sunstone tab (notifier error pop-ups)