mirror of
https://github.com/servo/servo.git
synced 2025-07-02 13:03:43 +01:00
Show actual exception when deletion fails.
This commit is contained in:
parent
71e2e84ce8
commit
991bb42b4c
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ import os.path as path
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import traceback
|
||||||
import urllib2
|
import urllib2
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
@ -318,6 +319,7 @@ class MachCommands(CommandBase):
|
||||||
try:
|
try:
|
||||||
delete(crate_path)
|
delete(crate_path)
|
||||||
except:
|
except:
|
||||||
|
print(traceback.format_exc())
|
||||||
print("Delete %s failed!" % crate_path)
|
print("Delete %s failed!" % crate_path)
|
||||||
else:
|
else:
|
||||||
print("Would remove `{}`{} package from {}".format(*print_msg))
|
print("Would remove `{}`{} package from {}".format(*print_msg))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue