Commits

Daniel Holth committed d31f1b6

improve 'would overwrite' error message

Comments (0)

Files changed (1)

             for k, v in name_trans.items():
                 key, target, filename, dest = v
                 if os.path.exists(dest):
-                    raise ValueError("Wheel file {} would overwrite an existing file. Use force if this is intended".format(k))
+                    raise ValueError("Wheel file {} would overwrite {}. Use force if this is intended".format(k, dest))
 
         # Get the name of our executable, for use when replacing script
         # wrapper hashbang lines.