Can you change this to `error.message || error.name`? I'm seeing `error.code` as undefined.