diff options
| author | Aiden Cline <[email protected]> | 2025-08-28 18:42:55 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-28 18:42:55 -0500 |
| commit | d7a9f343c53d481802c134ce25691a8c150d59d2 (patch) | |
| tree | 685a8c65850ba6a744532513a43f784c4593d6f7 | |
| parent | 5ecd7fdd0cce12837034b833911586d28230169e (diff) | |
| download | opencode-d7a9f343c53d481802c134ce25691a8c150d59d2.tar.gz opencode-d7a9f343c53d481802c134ce25691a8c150d59d2.zip | |
tui: show actual error if command fails (#2296)
| -rw-r--r-- | packages/tui/internal/app/app.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/tui/internal/app/app.go b/packages/tui/internal/app/app.go index 53272bf90..cbf12e504 100644 --- a/packages/tui/internal/app/app.go +++ b/packages/tui/internal/app/app.go @@ -826,7 +826,7 @@ func (a *App) SendCommand(ctx context.Context, command string, args string) (*Ap ) if err != nil { slog.Error("Failed to execute command", "error", err) - return toast.NewErrorToast("Failed to execute command")() + return toast.NewErrorToast(fmt.Sprintf("Failed to execute command: %v", err))() } return nil }) @@ -858,7 +858,7 @@ func (a *App) SendShell(ctx context.Context, command string) (*App, tea.Cmd) { ) if err != nil { slog.Error("Failed to submit shell command", "error", err) - return toast.NewErrorToast("Failed to submit shell command")() + return toast.NewErrorToast(fmt.Sprintf("Failed to submit shell command: %v", err))() } return nil }) |
