improve error reporting and do it the same way for all calls od rrdtool