aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-22 09:07:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-22 09:07:13 +0100
commit3255ff66dab0870c54c8f5c62b1c461b38abfe20 (patch)
treef85f909c49fd01d5af907e08fb0882f257b455c5 /src/DabMod.cpp
parente9ce4438abefdc164b0c5040756196a2d6bf1bfd (diff)
downloaddabmod-3255ff66dab0870c54c8f5c62b1c461b38abfe20.tar.gz
dabmod-3255ff66dab0870c54c8f5c62b1c461b38abfe20.tar.bz2
dabmod-3255ff66dab0870c54c8f5c62b1c461b38abfe20.zip
Check for invalid file output format
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 0ac7d4f..dfefb53 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -199,6 +199,10 @@ static shared_ptr<ModOutput> prepare_output(
output = make_shared<OutputFile>(s.outputName);
}
+ else {
+ throw runtime_error("File output format " + s.fileOutputFormat +
+ " not known");
+ }
}
#if defined(HAVE_OUTPUT_UHD)
else if (s.useUHDOutput) {