Improve error message when there are no packages to uninstall.
This commit is contained in:
parent
4a2aaa07dc
commit
fe52f9626a
1 changed files with 1 additions and 1 deletions
|
|
@ -882,7 +882,7 @@ proc uninstall(options: Options) =
|
||||||
pkgsToDelete.incl pkg
|
pkgsToDelete.incl pkg
|
||||||
|
|
||||||
if pkgsToDelete.len == 0:
|
if pkgsToDelete.len == 0:
|
||||||
raise newException(NimbleError, "Failed uninstall - no packages selected")
|
raise newException(NimbleError, "Failed uninstall - no packages to delete")
|
||||||
|
|
||||||
var pkgNames = ""
|
var pkgNames = ""
|
||||||
for pkg in pkgsToDelete.items:
|
for pkg in pkgsToDelete.items:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue