Don't log inside the `.map_err` call, which resulted in only logging function definitions on codegen errors.