[diagnose] use write_error_eval for format output T_T ....