Add error message for no schema in aos/logging/config_remapper.cc
Change-Id: I6c1092f9aeb433675b5a84ffc2f35c3c3ad9f051
Signed-off-by: James (Peilun) Li <jamespeilunli@gmail.com>
diff --git a/aos/events/logging/config_remapper.cc b/aos/events/logging/config_remapper.cc
index 763cbc3..edc2326 100644
--- a/aos/events/logging/config_remapper.cc
+++ b/aos/events/logging/config_remapper.cc
@@ -566,7 +566,9 @@
// Add the schema if it doesn't exist.
if (schema_map.find(c->type()->string_view()) == schema_map.end()) {
- CHECK(c->has_schema());
+ if (!c->has_schema()) {
+ LOG(FATAL) << "Could not find schema for " << c->type()->string_view();
+ }
schema_map.insert(std::make_pair(c->type()->string_view(),
RecursiveCopyFlatBuffer(c->schema())));
}