diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-03-27 18:59:12 -0400 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2010-03-27 18:59:12 -0400 |
commit | 232a17539eca17bc51c4f21d8acb217358766078 (patch) | |
tree | 351a77f577e97d6e6484f1690521255f04b55e37 /install.py | |
parent | 24915c91a15906c50121656da17230123aee48d1 (diff) |
install.py produced better error messages
Diffstat (limited to 'install.py')
-rwxr-xr-x | install.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -40,7 +40,7 @@ try: | |||
40 | # Copy source to destination | 40 | # Copy source to destination |
41 | shutil.copytree('unit_trace', dst) | 41 | shutil.copytree('unit_trace', dst) |
42 | except: | 42 | except: |
43 | print("Error occurred.") | 43 | print "Unexpected error:", sys.exc_info() |
44 | exit() | 44 | exit() |
45 | 45 | ||
46 | # Determine destination directory for unit-trace script | 46 | # Determine destination directory for unit-trace script |
@@ -51,7 +51,5 @@ try: | |||
51 | # Keep same permissions | 51 | # Keep same permissions |
52 | shutil.copystat('unit-trace', dst) | 52 | shutil.copystat('unit-trace', dst) |
53 | except: | 53 | except: |
54 | print("Error occurred.") | 54 | print "Unexpected error:", sys.exc_info() |
55 | exit() | 55 | exit() |
56 | |||
57 | |||