diff options
Diffstat (limited to 'src/bun.js')
-rw-r--r-- | src/bun.js/module_loader.zig | 4 |
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"; |