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/info.rs | |
parent | 3da20d19a14ab6838897d281f1b11e49d68bd1a7 (diff) |
refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)
Diffstat (limited to 'cli/info.rs')
-rw-r--r-- | cli/info.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/info.rs b/cli/info.rs index f997fbdea..f39e6b4f0 100644 --- a/cli/info.rs +++ b/cli/info.rs @@ -4,7 +4,7 @@ use crate::module_graph::{ModuleGraph, ModuleGraphFile, ModuleGraphLoader}; use crate::msg; use crate::ModuleSpecifier; use crate::Permissions; -use deno_core::ErrBox; +use deno_core::error::AnyError; use serde::Serialize; use std::collections::{HashMap, HashSet}; use std::sync::Arc; @@ -27,7 +27,7 @@ impl ModuleDepInfo { pub async fn new( global_state: &Arc<GlobalState>, module_specifier: ModuleSpecifier, - ) -> Result<ModuleDepInfo, ErrBox> { + ) -> Result<ModuleDepInfo, AnyError> { // First load module as if it was to be executed by worker // including compilation step let mut module_graph_loader = ModuleGraphLoader::new( |