Show actual exception when deletion fails.

This commit is contained in:
Josh Matthews 2018-03-08 09:57:19 -05:00
parent 71e2e84ce8
commit 991bb42b4c

View file

@ -16,6 +16,7 @@ import os.path as path
import re
import subprocess
import sys
import traceback
import urllib2
import glob
@ -318,6 +319,7 @@ class MachCommands(CommandBase):
try:
delete(crate_path)
except:
print(traceback.format_exc())
print("Delete %s failed!" % crate_path)
else:
print("Would remove `{}`{} package from {}".format(*print_msg))