diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-22 09:07:13 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-22 09:07:13 +0100 |
commit | 3255ff66dab0870c54c8f5c62b1c461b38abfe20 (patch) | |
tree | f85f909c49fd01d5af907e08fb0882f257b455c5 /src/DabMod.cpp | |
parent | e9ce4438abefdc164b0c5040756196a2d6bf1bfd (diff) | |
download | dabmod-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.cpp | 4 |
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) { |