Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch committed Jan 28, 2024
1 parent 368294d commit 3aa27a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nupm/install.nu
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def fetch-package [
throw-error $'Package ($package) not found in any registry'
} else if ($regs | length) > 1 {
# TODO: Here could be interactive prompt
throw-error 'Multiple registries contain the same package'
throw-error $'Multiple registries contain package ($package)'
}

# Now, only one registry contains the package
Expand Down
2 changes: 1 addition & 1 deletion tests/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export def install-multiple-registries-fail [] {
$err.msg
}

assert ("Multiple registries contain the same package" in $out)
assert ("Multiple registries contain package spam_script" in $out)
}
}

Expand Down

0 comments on commit 3aa27a4

Please sign in to comment.