Uppon failure, the createImage function returned a raw xhr error
that was incompatible with the wizard modal, making it display
the [Object object] error.
This change makes it so a generic error message is thrown directly
if it's not an handled glance error, so it could be shown on top of
the wizard modal.
Reviewed: https:/ /review. openstack. org/487592 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=09a2afef35a 2428ed7a551a3f1 6247e815fbabbd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 09a2afef35a2428 ed7a551a3f16247 e815fbabbd
Author: Pascal Boutin <email address hidden>
Date: Wed Jul 26 17:15:29 2017 -0400
Fix the error format of glance's createImage
Uppon failure, the createImage function returned a raw xhr error
that was incompatible with the wizard modal, making it display
the [Object object] error.
This change makes it so a generic error message is thrown directly
if it's not an handled glance error, so it could be shown on top of
the wizard modal.
Change-Id: I637bf1002630fe 21f5ad20a7a047e c65ebc052dc
Closes-bug: #1703708