mes: Add with-error-to-file.