Reject the config if condition config has errors. And add log tag.

Test: added unit test.
Change-Id: I5a9d6de2492b94bc5f1c88524f743607e60226c1
2 files changed