Author vinay.sajip
Recipients alexis, eric.araujo, tarek, vinay.sajip
Date 2011-06-24.12:07:30
SpamBayes Score 0.00552369
Marked as misclassified No
Message-id <1308917251.74.0.587284599526.issue12395@psf.upfronthosting.co.za>
In-reply-to
Content
We could fix the error message, for example, like this:

--- a/Lib/packaging/install.py	Fri Jun 24 10:21:46 2011 +0100
+++ b/Lib/packaging/install.py	Fri Jun 24 13:06:08 2011 +0100
@@ -412,6 +415,7 @@
                     error = _move_file(file_, tmpfile)
                     if error is not None:
                         success = False
+                        failed_on = file_
                         break
                 finally:
                     if not os.path.isfile(file_):
@@ -425,7 +429,7 @@
 
     if not success:
         logger.info('%r cannot be removed.', project_name)
-        logger.info('Error: %s' % str(error))
+        logger.info('Error: %s: %s' % (error, failed_on))
         return False
 
     logger.info('Removing %r: ', project_name)
History
Date User Action Args
2011-06-24 12:07:31vinay.sajipsetrecipients: + vinay.sajip, tarek, eric.araujo, alexis
2011-06-24 12:07:31vinay.sajipsetmessageid: <1308917251.74.0.587284599526.issue12395@psf.upfronthosting.co.za>
2011-06-24 12:07:31vinay.sajiplinkissue12395 messages
2011-06-24 12:07:30vinay.sajipcreate