fix error message for unrecognized generator