diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-06-20 12:07:01 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-19 19:07:01 -0700 |
commit | 425df50484f315dcd63b4d93ab6911702779899e (patch) | |
tree | 61d95f3773f254e1ed17d915ad927d40a1caeeea /cli/msg_util.rs | |
parent | 43f48386d7921612c5cbe7d39a4dfb82a3f3367e (diff) |
Combine CLI Errors (#2487)
Diffstat (limited to 'cli/msg_util.rs')
-rw-r--r-- | cli/msg_util.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/msg_util.rs b/cli/msg_util.rs index 71bcc19d9..0ecb7f0d6 100644 --- a/cli/msg_util.rs +++ b/cli/msg_util.rs @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Helpers for serialization. -use crate::errors; -use crate::errors::DenoResult; +use crate::deno_error; +use crate::deno_error::DenoResult; use crate::msg; use flatbuffers; @@ -104,7 +104,7 @@ pub fn deserialize_request( let u = header_msg.url().unwrap(); let u = Uri::from_str(u) - .map_err(|e| errors::new(msg::ErrorKind::InvalidUri, e.to_string()))?; + .map_err(|e| deno_error::new(msg::ErrorKind::InvalidUri, e.to_string()))?; *r.uri_mut() = u; if let Some(method) = header_msg.method() { |