summaryrefslogtreecommitdiff
path: root/src/deno_dir.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-15 23:36:48 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-08-21 15:37:45 -0400
commit18d495c7d17cf3fce3835e732094d058f51eddaa (patch)
treef7244cfd83dbff9d8aaf67203feb0f3a24fe95f3 /src/deno_dir.rs
parentcb1393cdaea4bfbee69efbf7ce86a4adfc4593b3 (diff)
Better error handling in src/handlers.rs
Introduces error codes that are shared between JS/RS Fixes #526.
Diffstat (limited to 'src/deno_dir.rs')
-rw-r--r--src/deno_dir.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deno_dir.rs b/src/deno_dir.rs
index 1a8c929ac..72e75bf5b 100644
--- a/src/deno_dir.rs
+++ b/src/deno_dir.rs
@@ -1,8 +1,8 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
+use errors::DenoError;
use fs;
use sha1;
use std;
-use std::error::Error;
use std::fs::File;
use std::io::Write;
use std::path::Path;
@@ -97,7 +97,7 @@ impl DenoDir {
self: &DenoDir,
module_specifier: &str,
containing_file: &str,
- ) -> Result<CodeFetchOutput, Box<Error>> {
+ ) -> Result<CodeFetchOutput, DenoError> {
let (module_name, filename) =
self.resolve_module(module_specifier, containing_file)?;