Convert to error instead of withError