Make write error messages more informational