throw error when executing an erroneous command