include info on bad command in error message