`console.error(err)`

should be enough