This seems slightly clearer:

`if (!(err instanceof Error && err.message == 'Already connecting')) {`