Error: Failed to write to file.