From 3255ff66dab0870c54c8f5c62b1c461b38abfe20 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 22 Dec 2017 09:07:13 +0100 Subject: Check for invalid file output format --- src/DabMod.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 prepare_output( output = make_shared(s.outputName); } + else { + throw runtime_error("File output format " + s.fileOutputFormat + + " not known"); + } } #if defined(HAVE_OUTPUT_UHD) else if (s.useUHDOutput) { -- cgit v1.2.3