Better formatting when asking to remove a file

This commit is contained in:
Ivan Kravets
2018-10-25 14:12:09 +03:00
parent fc8bffdd81
commit 8947b63e41

View File

@ -839,8 +839,7 @@ def rmtree_(path):
os.remove(name)
except Exception as e: # pylint: disable=broad-except
click.secho(
"%s \n\nCould not remove the file `%s`. "
"Please remove it manually." % (str(e), name),
"%s \nPlease manually remove the file `%s`" % (str(e), name),
fg="red",
err=True)