From 2a94f03823d9abcb4940804cfeaf478d3faeecda Mon Sep 17 00:00:00 2001 From: Eva H <63033505+hoyyeva@users.noreply.github.com> Date: Thu, 9 Apr 2026 09:51:34 -0700 Subject: [PATCH] launch: add re-run hint to dependency error message (#15439) --- cmd/launch/openclaw.go | 2 +- cmd/launch/pi.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/launch/openclaw.go b/cmd/launch/openclaw.go index 19d4dcc45..c39603662 100644 --- a/cmd/launch/openclaw.go +++ b/cmd/launch/openclaw.go @@ -547,7 +547,7 @@ func ensureOpenclawInstalled() (string, error) { if gitErr != nil { missing = append(missing, "git: https://git-scm.com/") } - return "", fmt.Errorf("openclaw is not installed and required dependencies are missing\n\nInstall the following first:\n %s", strings.Join(missing, "\n ")) + return "", fmt.Errorf("OpenClaw is not installed and required dependencies are missing\n\nInstall the following first:\n %s\n\nThen re-run:\n ollama launch openclaw", strings.Join(missing, "\n ")) } ok, err := ConfirmPrompt("OpenClaw is not installed. Install with npm?") diff --git a/cmd/launch/pi.go b/cmd/launch/pi.go index d6d6b1dad..89c5327d1 100644 --- a/cmd/launch/pi.go +++ b/cmd/launch/pi.go @@ -53,7 +53,7 @@ func (p *Pi) Run(model string, args []string) error { func ensureNpmInstalled() error { if _, err := exec.LookPath("npm"); err != nil { - return fmt.Errorf("npm (Node.js) is required to launch pi\n\nInstall it first:\n https://nodejs.org/") + return fmt.Errorf("npm (Node.js) is required to launch pi\n\nInstall it first:\n https://nodejs.org/\n\nThen re-run:\n ollama launch pi") } return nil } @@ -64,7 +64,7 @@ func ensurePiInstalled() (string, error) { } if _, err := exec.LookPath("npm"); err != nil { - return "", fmt.Errorf("pi is not installed and required dependencies are missing\n\nInstall the following first:\n npm (Node.js): https://nodejs.org/") + return "", fmt.Errorf("pi is not installed and required dependencies are missing\n\nInstall the following first:\n npm (Node.js): https://nodejs.org/\n\nThen re-run:\n ollama launch pi") } ok, err := ConfirmPrompt("Pi is not installed. Install with npm?")