Additional logging for generation failures (suggested in #81)