ref: 064ad29f8009c5fbdf754ae563d85396409a4e08
parent: e375a70c0377b69155d689cb2ea04a9b2b6ab044
author: Varun B Patil <[email protected]>
date: Mon Mar 24 08:56:06 EDT 2014
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()