diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-28 23:08:42 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-28 23:08:42 +0200 |
commit | e17805f208ac7b48958b1992f8bdd3ff3f913f36 (patch) | |
tree | e69aeecd07a841e33b6d06a9c452ef9f379b2a88 /src/decoder/plugins/WildmidiDecoderPlugin.cxx | |
parent | d8bcdca55a42dd2c852d7df2ebc7fa593806ee9e (diff) |
config/Block: GetPath() throws exception on error
Diffstat (limited to 'src/decoder/plugins/WildmidiDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/WildmidiDecoderPlugin.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/decoder/plugins/WildmidiDecoderPlugin.cxx b/src/decoder/plugins/WildmidiDecoderPlugin.cxx index e1689e625..ed879ae9f 100644 --- a/src/decoder/plugins/WildmidiDecoderPlugin.cxx +++ b/src/decoder/plugins/WildmidiDecoderPlugin.cxx @@ -40,13 +40,9 @@ static constexpr unsigned WILDMIDI_SAMPLE_RATE = 48000; static bool wildmidi_init(const ConfigBlock &block) { - Error error; const AllocatedPath path = block.GetPath("config_file", - "/etc/timidity/timidity.cfg", - error); - if (path.IsNull()) - FatalError(error); + "/etc/timidity/timidity.cfg"); if (!FileExists(path)) { const auto utf8 = path.ToUTF8(); |