hotfix: bug in res.error logging