Made the error for improper arguments more consistent