Most likely a typo.  In general, If I'm referencing `err.code`, it should be `err.message`.

Good catch!