aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-07 19:13:55 +0100
committerMax Kellermann <max@duempel.org>2015-01-07 19:13:55 +0100
commit58c4db925bfbdc8753ab41911ab64963b4031c77 (patch)
treea652c4b6db70e1f79a7a4a27337e8283763273c0 /src/output/plugins
parentfe0c4ff3c26c64aea46b8fa49456e8b40ef8dc05 (diff)
downloadmpd-58c4db925bfbdc8753ab41911ab64963b4031c77.tar.gz
mpd-58c4db925bfbdc8753ab41911ab64963b4031c77.tar.xz
mpd-58c4db925bfbdc8753ab41911ab64963b4031c77.zip
output/recorder: log commit errors
Diffstat (limited to 'src/output/plugins')
-rw-r--r--src/output/plugins/RecorderOutputPlugin.cxx4
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