summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-22 17:15:28 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-22 17:15:28 +0100
commitc27252b79363b46658fccbe743dc911049dd3450 (patch)
tree5bcf2abf23a2e4db21fa6c51623755b273a42689
parentef16c548dce02ef5335766d1729faf2d3c9b6ed5 (diff)
downloaddabmux-c27252b79363b46658fccbe743dc911049dd3450.tar.gz
dabmux-c27252b79363b46658fccbe743dc911049dd3450.tar.bz2
dabmux-c27252b79363b46658fccbe743dc911049dd3450.zip
Add another error in case of empty range_modulation
-rw-r--r--src/ConfigParser.cpp3
1 files changed, 3 insertions, 0 deletions
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);