]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
data: Drop misleading ExpansionError exception
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jan 2016 17:33:26 +0000 (17:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jan 2016 14:06:52 +0000 (14:06 +0000)
commitd49d46533704e8b4404e29abfb5a7383d704c91a
treec6e4c87e7944d9ee50ffb2c67528c5cb967351d1
parent9241eb10847634e34c5ff8767ed8c114f66ff6cf
data: Drop misleading ExpansionError exception

This codepath can be triggered by a python indentation error for example.
Showing it as an ExpansionError is misleading.

Change the code to add a warning about where the failure came from (in
particular giving the variable key name that triggered it) but raise the
proper exception.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/data.py