Handle errors using err.