Skip to content

Commit 69e4161

Browse files
authored
Change default resolver error message for custom specifiers (#9378)
1 parent eb54820 commit 69e4161

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/node-bindings/src/resolver.rs

+6
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,12 @@ impl Resolver {
343343
"esm" => SpecifierType::Esm,
344344
"commonjs" => SpecifierType::Cjs,
345345
"url" => SpecifierType::Url,
346+
"custom" => {
347+
return Err(napi::Error::new(
348+
napi::Status::InvalidArg,
349+
"Unsupported specifier type: custom",
350+
))
351+
}
346352
_ => {
347353
return Err(napi::Error::new(
348354
napi::Status::InvalidArg,

0 commit comments

Comments
 (0)