by
Changes to one file · Browse files at 4d2ab43036ef Showing diff from parent 8f7c2b92556a 0162d25e318e Diff from another changeset...
@@ -297,7 +297,11 @@ dodiff(tmproot)
finally:
ui.note(_('cleaning up temp directory\n'))
- shutil.rmtree(tmproot)
+ try:
+ shutil.rmtree(tmproot)
+ except (IOError, OSError), e:
+ # Leaking temporary files, fix your diff tool config
+ ui.note(_('unable to clean temp directory: %s\n'), str(e))
tmproot = tempfile.mkdtemp(prefix='visualdiff.')
if opts.get('mainapp'):
|
Loading...