throw an error on bad syntax