forwarding the error properly