Improve error message when there are no packages to uninstall.

This commit is contained in:
Dominik Picheta 2019-09-22 11:15:00 +01:00
commit fe52f9626a

View file

@ -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: