Handle which errors properly