Fix error messages for node