From c27252b79363b46658fccbe743dc911049dd3450 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 22 Feb 2018 17:15:28 +0100 Subject: Add another error in case of empty range_modulation --- src/ConfigParser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index a0bf97e..b48df8c 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -203,6 +203,9 @@ static void parse_freq_info(ptree& pt, else if (rm_str == "amss") { fle.rm = RangeModulation::amss; } + else if (rm_str == "") { + throw runtime_error("Missing range_modulation in FI " + fi_uid); + } else { throw runtime_error("Invalid range_modulation '" + rm_str + "' in FI " + fi_uid); -- cgit v1.2.3