added error message for failures