Added a better error message on a failed action

Signed-off-by: hajee <hajee@moretIA.com>