File 0001-Propagate-textual-errors-from-rrdcached.patch of Package collectd

From 72a9759048e31e5feed638a0e9792cd477073ad0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jan.kundrat@cesnet.cz>
Date: Sat, 21 Feb 2015 13:09:02 +0100
Subject: [PATCH] Propagate textual errors from rrdcached

---
 src/rrdcached.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rrdcached.c b/src/rrdcached.c
index e77be2d..f9503bd 100644
--- a/src/rrdcached.c
+++ b/src/rrdcached.c
@@ -477,8 +477,8 @@ static int rc_write (const data_set_t *ds, const value_list_t *vl,
   if (status != 0)
   {
     ERROR ("rrdcached plugin: rrdc_update (%s, [%s], 1) failed with "
-        "status %i.",
-        filename, values_array[0], status);
+        "status %i (%s).",
+        filename, values_array[0], status, rrd_test_error() ? rrd_get_error() : "no RRD-specific error given");
     return (-1);
   }
 
-- 
1.8.3.2