better error when use without tet

This commit is contained in:
2026-02-20 21:49:22 -06:00
parent 374069ae99
commit e73152bc36

View File

@@ -1294,6 +1294,10 @@ function get_module(path, package_context) {
}
Shop.use = function use(path, _pkg_ctx) {
if (!is_text(path)) {
log.error("use() expects a text module path, but received a non-text value")
disrupt
}
var package_context = is_core_dir(_pkg_ctx) ? 'core' : _pkg_ctx
// Check for embedded module (static builds)
var embed_key = 'embedded:' + path