Commit 85edcb85 authored by Max Kellermann's avatar Max Kellermann

tag/Config: throw exception instead of raising fatal error

parent bab5f1a9
......@@ -23,10 +23,10 @@
#include "ParseName.hxx"
#include "config/ConfigGlobal.hxx"
#include "config/ConfigOption.hxx"
#include "system/FatalError.hxx"
#include "util/Alloc.hxx"
#include "util/ASCII.hxx"
#include "util/StringStrip.hxx"
#include "util/RuntimeError.hxx"
#include <stdlib.h>
......@@ -57,8 +57,8 @@ TagLoadConfig()
const auto type = tag_name_parse_i(c);
if (type == TAG_NUM_OF_ITEM_TYPES)
FormatFatalError("error parsing metadata item \"%s\"",
c);
throw FormatRuntimeError("error parsing metadata item \"%s\"",
c);
global_tag_mask |= type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment