From a09296322e1fd4451e903515a497d9e02e14ace6 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 5 Feb 2023 07:45:58 +0000 Subject: [PATCH] chore(core): improve error message in module loader example (#17654) Just a small tweak to the error message to avoid confusion. --- core/examples/ts_module_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/examples/ts_module_loader.rs b/core/examples/ts_module_loader.rs index 82a3c1079d..b57b044930 100644 --- a/core/examples/ts_module_loader.rs +++ b/core/examples/ts_module_loader.rs @@ -47,7 +47,7 @@ impl ModuleLoader for TypescriptModuleLoader { async move { let path = module_specifier .to_file_path() - .map_err(|_| anyhow!("Only file: URLs are supported."))?; + .map_err(|_| anyhow!("Only file:// URLs are supported."))?; let media_type = MediaType::from(&path); let (module_type, should_transpile) = match MediaType::from(&path) {