From 4b61170e224344a94152ef6f618d6c71834e5cea Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 2 Feb 2019 01:58:53 -0500 Subject: Better error message for bad filename CLI argument. --- tests/error_009_missing_js_module.js.out | 2 +- tests/error_010_nonexistent_arg.out | 1 + tests/error_010_nonexistent_arg.test | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/error_010_nonexistent_arg.out create mode 100644 tests/error_010_nonexistent_arg.test (limited to 'tests') diff --git a/tests/error_009_missing_js_module.js.out b/tests/error_009_missing_js_module.js.out index ca41435fa..edb08da1c 100644 --- a/tests/error_009_missing_js_module.js.out +++ b/tests/error_009_missing_js_module.js.out @@ -1 +1 @@ -Uncaught Cannot resolve module "./bad-module.js" from "[WILDCARD]error_009_missing_js_module.js" +Cannot resolve module "./bad-module.js" from "[WILDCARD]error_009_missing_js_module.js" diff --git a/tests/error_010_nonexistent_arg.out b/tests/error_010_nonexistent_arg.out new file mode 100644 index 000000000..248cbc329 --- /dev/null +++ b/tests/error_010_nonexistent_arg.out @@ -0,0 +1 @@ +[WILDCARD]Cannot resolve module "not-a-valid-filename.ts" from "." diff --git a/tests/error_010_nonexistent_arg.test b/tests/error_010_nonexistent_arg.test new file mode 100644 index 000000000..9d183107c --- /dev/null +++ b/tests/error_010_nonexistent_arg.test @@ -0,0 +1,4 @@ +args: not-a-valid-filename.ts +output: tests/error_010_nonexistent_arg.out +exit_code: 1 +check_stderr: true -- cgit v1.2.3