err.code is a number not a string