From 38c09afc85dbc963dddeee584e2e5517f2416ac0 Mon Sep 17 00:00:00 2001 From: Jonathan Dunn Date: Tue, 5 Mar 2024 15:26:59 -0500 Subject: [PATCH] changed an error message --- installer/client/cli/utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index 5d0619f..cc7e491 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -126,8 +126,12 @@ class Standalone: print() # Handle newlines sys.stdout.flush() except Exception as e: - print(f"Error: {e}") - print(e) + if "All connection attempts failed" in str(e): + print( + "Error: cannot connect to llama2. If you have not already, please visit https://ollama.com for installation instructions") + else: + print(f"Error: {e}") + print(e) if self.args.copy: pyperclip.copy(buffer) if self.args.output: