tag/Config: throw exception instead of raising fatal error
This commit is contained in:
parent
bab5f1a93f
commit
85edcb858d
@ -23,10 +23,10 @@
|
|||||||
#include "ParseName.hxx"
|
#include "ParseName.hxx"
|
||||||
#include "config/ConfigGlobal.hxx"
|
#include "config/ConfigGlobal.hxx"
|
||||||
#include "config/ConfigOption.hxx"
|
#include "config/ConfigOption.hxx"
|
||||||
#include "system/FatalError.hxx"
|
|
||||||
#include "util/Alloc.hxx"
|
#include "util/Alloc.hxx"
|
||||||
#include "util/ASCII.hxx"
|
#include "util/ASCII.hxx"
|
||||||
#include "util/StringStrip.hxx"
|
#include "util/StringStrip.hxx"
|
||||||
|
#include "util/RuntimeError.hxx"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -57,8 +57,8 @@ TagLoadConfig()
|
|||||||
|
|
||||||
const auto type = tag_name_parse_i(c);
|
const auto type = tag_name_parse_i(c);
|
||||||
if (type == TAG_NUM_OF_ITEM_TYPES)
|
if (type == TAG_NUM_OF_ITEM_TYPES)
|
||||||
FormatFatalError("error parsing metadata item \"%s\"",
|
throw FormatRuntimeError("error parsing metadata item \"%s\"",
|
||||||
c);
|
c);
|
||||||
|
|
||||||
global_tag_mask |= type;
|
global_tag_mask |= type;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user