Return error instead of throwing