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) {