summaryrefslogtreecommitdiff
path: root/cli/deno_error.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-07-30 16:34:57 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-07-30 14:34:57 +0000
commitac269beabe1b16294118e64e69bf487639086941 (patch)
treea3e084c4ea10ab40867669a17153138f8f2120c4 /cli/deno_error.rs
parent5083f5fd908057cbc8649b79c13ab78a7f7ebf34 (diff)
feat: add debug info to ModuleResolutionError (#2697)
Diffstat (limited to 'cli/deno_error.rs')
-rw-r--r--cli/deno_error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/deno_error.rs b/cli/deno_error.rs
index ebcda1c8e..2bc021f52 100644
--- a/cli/deno_error.rs
+++ b/cli/deno_error.rs
@@ -118,8 +118,8 @@ impl GetErrorKind for ModuleResolutionError {
use ModuleResolutionError::*;
match self {
InvalidUrl(ref err) | InvalidBaseUrl(ref err) => err.kind(),
- InvalidPath => ErrorKind::InvalidPath,
- ImportPrefixMissing => ErrorKind::ImportPrefixMissing,
+ InvalidPath(_) => ErrorKind::InvalidPath,
+ ImportPrefixMissing(_) => ErrorKind::ImportPrefixMissing,
}
}
}