summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/ModplugDecoderPlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/plugins/ModplugDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/ModplugDecoderPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/plugins/ModplugDecoderPlugin.cxx b/src/decoder/plugins/ModplugDecoderPlugin.cxx
index 7e114c05a..97e5f87b4 100644
--- a/src/decoder/plugins/ModplugDecoderPlugin.cxx
+++ b/src/decoder/plugins/ModplugDecoderPlugin.cxx
@@ -22,9 +22,9 @@
#include "../DecoderAPI.hxx"
#include "input/InputStream.hxx"
#include "tag/TagHandler.hxx"
-#include "system/FatalError.hxx"
#include "util/WritableBuffer.hxx"
#include "util/Domain.hxx"
+#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <libmodplug/modplug.h>
@@ -45,8 +45,8 @@ modplug_decoder_init(const ConfigBlock &block)
{
modplug_loop_count = block.GetBlockValue("loop_count", 0);
if (modplug_loop_count < -1)
- FormatFatalError("Invalid loop count in line %d: %i",
- block.line, modplug_loop_count);
+ throw FormatRuntimeError("Invalid loop count in line %d: %i",
+ block.line, modplug_loop_count);
return true;
}