diff options
author | Waldir Pimenta <waldyrious@gmail.com> | 2023-02-05 07:45:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 13:15:58 +0530 |
commit | a09296322e1fd4451e903515a497d9e02e14ace6 (patch) | |
tree | 07de056fd9dbfef92bc35ed27795913ba1872f04 | |
parent | 0eb5be9a1204f959d3daac8cd7b1b342320970fd (diff) |
chore(core): improve error message in module loader example (#17654)
Just a small tweak to the error message to avoid confusion.
-rw-r--r-- | core/examples/ts_module_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/examples/ts_module_loader.rs b/core/examples/ts_module_loader.rs index 82a3c1079..b57b04493 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) { |