Corrected an incorrect return value when -ERR is received from the server - introduced in commit b5bb61ee (June 2012).