Fix error buffer usage for redis input and output