summaryrefslogtreecommitdiff
path: root/ext/fs/ops.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-05-11 19:05:37 -0400
committerGitHub <noreply@github.com>2023-05-11 23:05:37 +0000
commite0f07ab8cdd007afee14430264f486346ba8447e (patch)
tree6f5f01d3b7cf5ac818112c18515fd047ab8e0104 /ext/fs/ops.rs
parent28a72d548801f81a96ff4bba750d8dc51a2b1567 (diff)
fix(ext/fs): add more context_path (#19101)
Diffstat (limited to 'ext/fs/ops.rs')
-rw-r--r--ext/fs/ops.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fs/ops.rs b/ext/fs/ops.rs
index 71526b217..0fad92044 100644
--- a/ext/fs/ops.rs
+++ b/ext/fs/ops.rs
@@ -1154,7 +1154,7 @@ where
permissions.check_read(&path, "Deno.readFileSync()")?;
let fs = state.borrow::<FileSystemRc>();
- let buf = fs.read_file_sync(&path).context("readfile")?;
+ let buf = fs.read_file_sync(&path).context_path("readfile", &path)?;
Ok(buf.into())
}
@@ -1210,7 +1210,7 @@ where
permissions.check_read(&path, "Deno.readFileSync()")?;
let fs = state.borrow::<FileSystemRc>();
- let buf = fs.read_file_sync(&path).context("readfile")?;
+ let buf = fs.read_file_sync(&path).context_path("readfile", &path)?;
Ok(string_from_utf8_lossy(buf))
}