Log full error message on write error.