From 85edcb858d5f8d05b61a25b7bf4ef4cb568be6c2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Aug 2017 09:33:07 +0200 Subject: [PATCH] tag/Config: throw exception instead of raising fatal error --- src/tag/Config.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tag/Config.cxx b/src/tag/Config.cxx index 619b94158..4ea09f559 100644 --- a/src/tag/Config.cxx +++ b/src/tag/Config.cxx @@ -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 @@ -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;