summaryrefslogtreecommitdiff
path: root/cli/fs.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-20 16:50:16 +0100
committerRy Dahl <ry@tinyclouds.org>2020-01-20 10:50:16 -0500
commitc90036ab88bb1ae6b9c87d5e368f56d8c8afab69 (patch)
treeebc7b762151489440135c029a1217c80bb810900 /cli/fs.rs
parente83658138bff3605bd37c2b4ae4703081d884729 (diff)
refactor: reduce number of ErrorKind variants (#3662)
Diffstat (limited to 'cli/fs.rs')
-rw-r--r--cli/fs.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/fs.rs b/cli/fs.rs
index 272eaf84c..8d3a31bb5 100644
--- a/cli/fs.rs
+++ b/cli/fs.rs
@@ -126,7 +126,9 @@ pub fn chown(path: &str, uid: u32, gid: u32) -> Result<(), ErrBox> {
pub fn chown(_path: &str, _uid: u32, _gid: u32) -> Result<(), ErrBox> {
// Noop
// TODO: implement chown for Windows
- Err(crate::deno_error::op_not_implemented())
+ Err(crate::deno_error::other_error(
+ "Op not implemented".to_string(),
+ ))
}
pub fn resolve_from_cwd(path: &Path) -> Result<PathBuf, ErrBox> {