From ac269beabe1b16294118e64e69bf487639086941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 30 Jul 2019 16:34:57 +0200 Subject: feat: add debug info to ModuleResolutionError (#2697) --- cli/deno_error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') 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, } } } -- cgit v1.2.3