pub fn new_write_error(error: Error, path: &Path) -> Error