aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/module_loader.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/module_loader.zig')
-rw-r--r--src/bun.js/module_loader.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig
index 91081786b..01ae2771a 100644
--- a/src/bun.js/module_loader.zig
+++ b/src/bun.js/module_loader.zig
@@ -621,9 +621,9 @@ pub const ModuleLoader = struct {
.{ result.name, result.url },
),
error.DistTagNotFound, error.NoMatchingVersion => brk: {
- const prefix: []const u8 = if (result.err == error.NoMatchingVersion and result.version.tag == .npm and result.version.value.npm.isExact())
+ const prefix: []const u8 = if (result.err == error.NoMatchingVersion and result.version.tag == .npm and result.version.value.npm.version.isExact())
"Version not found"
- else if (result.version.tag == .npm and !result.version.value.npm.isExact())
+ else if (result.version.tag == .npm and !result.version.value.npm.version.isExact())
"No matching version found"
else
"No match found";