Typo fix in couchdb error handler