rm on non-empty dir was wrongly printing that it was removed - fixes #1371

This commit is contained in:
Krishna Srinivas
2015-11-18 00:09:25 -08:00
parent 1ebcf98a6f
commit 054aaadde8
+1
View File
@@ -198,6 +198,7 @@ func mainRm(ctx *cli.Context) {
} else {
if err := rm(url, isIncomplete, isFake); err != nil {
errorIf(err.Trace(url), "Unable to remove ‘"+url+"’.")
continue
}
printMsg(rmMessage{url})
}