Browse Source

changed an error message

model_as_env_variable
Jonathan Dunn 9 months ago
parent
commit
38c09afc85
  1. 8
      installer/client/cli/utils.py

8
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:

Loading…
Cancel
Save