Switch to a different js error as the text is different in new versions of node