Make a better error message when os.symlink fails during bundle

Review Request #1037 - Created Sept. 15, 2014 and submitted

Information
Andy Reitz
pants
350e305...
Reviewers
pants-reviews
ity, jsirois, stuhood

Make a better error message when os.symlink fails during bundle. I tried putting this in 'src/python/pants/util/dirutil.py', but I couldn't figure out how to access the console log from there.

Before:

15:21:42 00:25 [bundle]
15:21:42 00:25 [bundle]
creating dist/amplify-core-server-package-dist-bundle
FAILURE

Exception message: [Errno 17] File exists

After:

...
15:19:35 00:21 [bundle]
15:19:35 00:21 [bundle]
creating dist/amplify-core-server-package-dist-bundle
Unable to create symlink: /Users/areitz/workspace/birdcage/.pants.d/ivy/mapped-jars/audio-video.amplify-core.server.src.main.scala.bin/com.twitter/joauth/default/com.twitter-joauth-6.0.2.jar -> /Users/areitz/workspace/birdcage/dist/amplify-core-server-package-dist-bundle/libs/com.twitter-joauth-6.0.2.jar
FAILURE

Exception message: [Errno 17] File exists

John Sirois
Andy Reitz
John Sirois
Andy Reitz
Review request changed

Status: Closed (submitted)

Loading...