spec for throwing error in generate command