summaryrefslogtreecommitdiff
path: root/core/examples/ts_module_loader.rs
diff options
context:
space:
mode:
authorWaldir Pimenta <waldyrious@gmail.com>2023-02-05 07:45:58 +0000
committerGitHub <noreply@github.com>2023-02-05 13:15:58 +0530
commita09296322e1fd4451e903515a497d9e02e14ace6 (patch)
tree07de056fd9dbfef92bc35ed27795913ba1872f04 /core/examples/ts_module_loader.rs
parent0eb5be9a1204f959d3daac8cd7b1b342320970fd (diff)
chore(core): improve error message in module loader example (#17654)
Just a small tweak to the error message to avoid confusion.
Diffstat (limited to 'core/examples/ts_module_loader.rs')
-rw-r--r--core/examples/ts_module_loader.rs2
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) {