ref: aef3949d8e2e7ec66c73a263ad2fd4c7b34e5d35
parent: 5171bec92c5caf10ac3aa3dbc9417aa88a136778
parent: 064ad29f8009c5fbdf754ae563d85396409a4e08
author: Ethan Hugg <ethanhugg@gmail.com>
date: Mon Mar 24 07:26:55 EDT 2014
Merge pull request #565 from varunbpatil/errstr Better error reporting in mktargets.py
--- a/build/mktargets.py
+++ b/build/mktargets.py
@@ -99,7 +99,8 @@
OUTFILE = os.path.abspath(OUTFILE)
try:
os.chdir(args.directory)
-except:
+except OSError as e:
+ sys.stderr.write("Error changing directory to %s\n" % e.filename)
sys.exit(1)
(cpp, asm, cfiles, sfiles) = find_sources()