diff --git a/rust/pv_core/src/utils.rs b/rust/pv_core/src/utils.rs index 08758e14..b5331d1e 100644 --- a/rust/pv_core/src/utils.rs +++ b/rust/pv_core/src/utils.rs @@ -296,7 +296,7 @@ pub fn read_file>(path: P, ctx: &str) -> Result> { pub fn read>(rd: &mut R, path: P, ctx: &str) -> Result> { let mut buf = vec![]; rd.read_to_end(&mut buf).map_err(|e| Error::FileIo { - ty: FileIoErrorType::Write, + ty: FileIoErrorType::Read, ctx: ctx.to_string(), path: path.as_ref().to_path_buf(), source: e,