if an exception occurs, during parsing, show which file caused it.
authorPhil Blundell <philb@gnu.org>
Fri, 3 Dec 2004 19:52:22 +0000 (19:52 +0000)
committerPhil Blundell <philb@gnu.org>
Fri, 3 Dec 2004 19:52:22 +0000 (19:52 +0000)
be sure to propagate KeyboardInterrupt up correctly.

bin/oe/make.py

index df4c1e8..ba3adea 100644 (file)
@@ -191,6 +191,11 @@ def collect_oefiles( progressCallback ):
             pass
         except oe.parse.SkipPackage:
             skipped += 1
+            pass
+        except KeyboardInterrupt:
+            raise
+        except Exception, e:
+            oe.error("%s while parsing %s" % (e, f))
     print "\rNOTE: Parsing finished. %d cached, %d parsed, %d skipped, %d masked." % ( cached, parsed, skipped, masked ), 
 
 def explode_version(s):