Fix improper error message when reducing partition size
When attempting to reduce partition size from the GUI, a generic
error message is returned. This occurs because providing the complete
error details to the error handler can lead to the generation of
a distinct exception.
Test plan:
Install Standard. Create partition and
attempt to reduce size from GUI.
Verify that error message indicates
that is not possible to reduce partitions.
Also verify that right error message is present in
horizon.log and that any other exception dissapear
for this action.
Reviewed: https:/ /review. opendev. org/c/starlingx /gui/+/ 880069 /opendev. org/starlingx/ gui/commit/ db9bb2cf03ba1cf f7ed7b0b4739d03 83b59d17de
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit db9bb2cf03ba1cf f7ed7b0b4739d03 83b59d17de
Author: fperez <email address hidden>
Date: Tue Apr 11 13:33:38 2023 -0300
Fix improper error message when reducing partition size
When attempting to reduce partition size from the GUI, a generic
error message is returned. This occurs because providing the complete
error details to the error handler can lead to the generation of
a distinct exception.
Test plan:
Install Standard. Create partition and
attempt to reduce size from GUI.
Verify that error message indicates
that is not possible to reduce partitions.
Also verify that right error message is present in
horizon.log and that any other exception dissapear
for this action.
Closes-Bug: 2015918
Signed-off-by: fperez <email address hidden> 029b30ea230c343 a4fe1df8a5f
Change-Id: I9ad7315f9e428d