Check error instead of not ok