summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-06-30 19:45:59 +0200
committerBert Belder <bertbelder@gmail.com>2019-06-30 19:46:32 +0200
commit32cde32e54a0c8c73b7bc3da9a3ade8d739cc0b5 (patch)
treeca39f7f51e38bb84f6869cc12e0c6fa8af783b87 /tests
parent9d18f97327e94ecf6fd0ae7b75a88abfeac07d7e (diff)
core: return useful error when import path has no prefix like ./
Diffstat (limited to 'tests')
-rw-r--r--tests/error_011_bad_module_specifier.ts.out2
-rw-r--r--tests/error_012_bad_dynamic_import_specifier.ts.out2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/error_011_bad_module_specifier.ts.out b/tests/error_011_bad_module_specifier.ts.out
index 422532765..d5a3efd7e 100644
--- a/tests/error_011_bad_module_specifier.ts.out
+++ b/tests/error_011_bad_module_specifier.ts.out
@@ -1,4 +1,4 @@
-[WILDCARD]error: Uncaught RelativeUrlWithCannotBeABaseBase: relative URL with a cannot-be-a-base base
+[WILDCARD]error: Uncaught ImportPathPrefixMissing: relative import path not prefixed with / or ./ or ../
[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])
diff --git a/tests/error_012_bad_dynamic_import_specifier.ts.out b/tests/error_012_bad_dynamic_import_specifier.ts.out
index 1337028b2..1a20b60a1 100644
--- a/tests/error_012_bad_dynamic_import_specifier.ts.out
+++ b/tests/error_012_bad_dynamic_import_specifier.ts.out
@@ -1,4 +1,4 @@
-[WILDCARD]error: Uncaught RelativeUrlWithCannotBeABaseBase: relative URL with a cannot-be-a-base base
+[WILDCARD]error: Uncaught ImportPathPrefixMissing: relative import path not prefixed with / or ./ or ../
[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])