Commit e540d5cd authored by Myles Borins's avatar Myles Borins Committed by Ruben Bridgewater
Browse files

module: improve error for invalid package targets

For targets that are strings that do not start with `./` or `/` the
error will now have additional information about what the programming
error is.

Closes: https://github.com/nodejs/node/issues/32034

PR-URL: https://github.com/nodejs/node/pull/32052
Fixes: https://github.com/nodejs/node/issues/32034


Reviewed-By: default avatarGeoffrey Booth <webmaster@geoffreybooth.com>
Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
Reviewed-By: default avatarJan Krems <jan.krems@gmail.com>
Reviewed-By: default avatarGuy Bedford <guybedford@gmail.com>
Signed-off-by: default avatarMyles Borins <myles.borins@gmail.com>
parent bfa19c47
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment