diff options
author | Max Kellermann <max@duempel.org> | 2015-01-07 19:13:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-07 19:13:55 +0100 |
commit | 58c4db925bfbdc8753ab41911ab64963b4031c77 (patch) | |
tree | a652c4b6db70e1f79a7a4a27337e8283763273c0 /src | |
parent | fe0c4ff3c26c64aea46b8fa49456e8b40ef8dc05 (diff) | |
download | mpd-58c4db925bfbdc8753ab41911ab64963b4031c77.tar.gz mpd-58c4db925bfbdc8753ab41911ab64963b4031c77.tar.xz mpd-58c4db925bfbdc8753ab41911ab64963b4031c77.zip |
output/recorder: log commit errors
Diffstat (limited to 'src')
-rw-r--r-- | src/output/plugins/RecorderOutputPlugin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/output/plugins/RecorderOutputPlugin.cxx b/src/output/plugins/RecorderOutputPlugin.cxx index f83a2edbd..ae6e440a6 100644 --- a/src/output/plugins/RecorderOutputPlugin.cxx +++ b/src/output/plugins/RecorderOutputPlugin.cxx @@ -249,7 +249,9 @@ RecorderOutput::Commit(Error &error) inline void RecorderOutput::Close() { - Commit(IgnoreError()); + Error error; + if (!Commit(error)) + LogError(error); } inline void |