Fix wrong error return value
Fix wrong error return value

We now pre-check the error before returning it in wrapped state.

Signed-off-by: Sascha Grunert <70ab469ddb2ac3e35f32ed7c2fd1cca514b2e879@redhat.com>

containers/storage,containers/storage,containers/storage