assert the value of err?