summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-04 17:32:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-06 15:27:34 +0000
commit2c9431135d6cae6b1aa7120526757b596581a14e (patch)
tree49f2802f16cbdbf9bebc667cd762fc2aef0be39f
parenta16b54343653f53f7f84b3f1c0f952e83e2f8771 (diff)
downloadpoky-2c9431135d6cae6b1aa7120526757b596581a14e.tar.gz
bitbake: cooker: Drop useless parsing exception
The SyntaxError exception simply shows the recipe that failed to parse which is pretty useless without the actual exception. We could make it print more info, however we can just use one of the more generic handlers instead and remove this one. For a python indentation error, this leads to a much more readable error message. (Bitbake rev: 9241eb10847634e34c5ff8767ed8c114f66ff6cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4df88818fc..5ceb198c05 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -2125,11 +2125,6 @@ class CookerParser(object):
2125 logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc)) 2125 logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc))
2126 self.shutdown(clean=False) 2126 self.shutdown(clean=False)
2127 return False 2127 return False
2128 except SyntaxError as exc:
2129 self.error += 1
2130 logger.error('Unable to parse %s', exc.recipe)
2131 self.shutdown(clean=False)
2132 return False
2133 except Exception as exc: 2128 except Exception as exc:
2134 self.error += 1 2129 self.error += 1
2135 etype, value, tb = sys.exc_info() 2130 etype, value, tb = sys.exc_info()