diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-09-14 18:48:57 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-09-15 01:50:52 +0200 |
commit | f5b40c918c7d602827622d167728a3e7bae87d9d (patch) | |
tree | fb51722e043f4d6bce64a2c7e897cce4ead06c82 /cli/fs.rs | |
parent | 3da20d19a14ab6838897d281f1b11e49d68bd1a7 (diff) |
refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)
Diffstat (limited to 'cli/fs.rs')
-rw-r--r-- | cli/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |