commit | 8f591125184499e67e4a459a872eb83fb23e78ab | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Mon Dec 28 18:46:58 2020 -0800 |
committer | Gerrit Code Review <gerrit@software.frc971.org> | Mon Dec 28 18:46:58 2020 -0800 |
tree | 7605c26c90c1a1a1715a3179c495766490ae2559 | |
parent | 8e70c0349f035e5ebd8186f0fdc4ce38a57d835d [diff] | |
parent | 9fcf2c7de4405cd8d41647dd16fdceb306404a16 [diff] |
Merge "Crash with nice errors if the config is completely missing channels"
diff --git a/aos/configuration.cc b/aos/configuration.cc index 3eee4ff..4a66358 100644 --- a/aos/configuration.cc +++ b/aos/configuration.cc
@@ -593,6 +593,10 @@ std::string_view type, std::string_view application_name, const Node *node, bool quiet) { + if (!config->has_channels()) { + return nullptr; + } + const std::string_view original_name = name; std::string mutable_name; if (node != nullptr) {