console.log -> console.error, err.code > err.message.