Assert ifError method