summaryrefslogtreecommitdiff
path: root/cli/fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/fs.rs')
-rw-r--r--cli/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/fs.rs b/cli/fs.rs
index e8d081100..2a05615b9 100644
--- a/cli/fs.rs
+++ b/cli/fs.rs
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+use deno_core::error::AnyError;
pub use deno_core::normalize_path;
-use deno_core::ErrBox;
use std::env::current_dir;
use std::fs::OpenOptions;
use std::io::Write;
@@ -47,7 +47,7 @@ pub fn write_file_2<T: AsRef<[u8]>>(
file.write_all(data.as_ref())
}
-pub fn resolve_from_cwd(path: &Path) -> Result<PathBuf, ErrBox> {
+pub fn resolve_from_cwd(path: &Path) -> Result<PathBuf, AnyError> {
let resolved_path = if path.is_absolute() {
path.to_owned()
} else {