diff options
Diffstat (limited to 'ext/fs/ops.rs')
-rw-r--r-- | ext/fs/ops.rs | 4 |
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)) } |