fix typo in nodejs error handler