return error to the user