Add error message for bad enum declaration syntax.

BIT-1273 #close