rocksclusters / FingerPrint

Fingerprinting application dependencies
http://fingerprint.readthedocs.org/en/latest/
Other
7 stars 7 forks source link

make error msg more descriptive #1

Closed yarikoptic closed 11 years ago

yarikoptic commented 11 years ago

Compare:

$> PYTHONPATH=$PWD bin/fingerprint -d  ./tests/files/centos_6.2_x86_64/output.swirl 
Usage: fingerprint [-q|-c|-y|-d|-i] [options] inputfile1 ... inputfileN

fingerprint: error: The file output.swirl could not be opened on this system.

(is the file broken? absent?? what?)

to

$> PYTHONPATH=$PWD bin/fingerprint -d ./tests/files/Ubuntu_12.04_x86_64/output.swirl                
Usage: fingerprint [-q|-c|-y|-d|-i] [options] inputfile1 ... inputfileN

fingerprint: error: The file output.swirl could not be opened on this system: [Errno 2] No such file or directory: 'output.swirl'.

(sounds like an internal issue on assumptions of location of the input file)

yarikoptic commented 11 years ago

including more things into this PR as "looking" at it -- commit messages should be descriptive enough ;)