diff --git a/form.go b/form.go index eee47fe3..17679cda 100644 --- a/form.go +++ b/form.go @@ -652,7 +652,10 @@ func (f *Form) run(ctx context.Context) error { if errors.Is(err, tea.ErrProgramKilled) { return ErrTimeout } - return fmt.Errorf("huh: %w", err) + if err != nil { + return fmt.Errorf("huh: %w", err) + } + return nil } // runAccessible runs the form in accessible mode.