From 779effc963e17a7b8a549eef8d825058412d228d Mon Sep 17 00:00:00 2001 From: Taka Date: Thu, 4 May 2017 07:29:08 +0000 Subject: [PATCH] Improved an error message. --- _freeze.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_freeze.py b/_freeze.py index 2b45c38..49acd24 100755 --- a/_freeze.py +++ b/_freeze.py @@ -40,7 +40,7 @@ cleanup = True opts,args = getopt.getopt( sys.argv[1:] , "o:" , ["output=","noclean"] ) for opt,val in opts : if opt in ["-o","--output"] : - output_fname = val + output_fname = val.strip() elif opt in ["--noclean"] : cleanup = False else : @@ -57,7 +57,7 @@ for extn,fmt in formats.items() : output_fname2 = output_fname[ : -len(extn) ] break if not output_fmt : - raise RuntimeError( "Unknown output format." ) + raise RuntimeError( "Unknown release archive format: {}".format( os.path.split(output_fname)[1] ) ) # initialize the build options build_options = {