[PECOFF] Output error message to diagnostics.