From 89b7b45eead1f1493389051310eb4cefe0b8e598 Mon Sep 17 00:00:00 2001
From: Marcus Schiesser <mail@marcusschiesser.de>
Date: Wed, 7 Feb 2024 16:16:06 +0700
Subject: [PATCH] fix(cl): improved error messages for python installation

---
 helpers/python.ts | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/helpers/python.ts b/helpers/python.ts
index 6fbc48b5..6ba0a63e 100644
--- a/helpers/python.ts
+++ b/helpers/python.ts
@@ -1,6 +1,6 @@
 import fs from "fs/promises";
 import path from "path";
-import { cyan, red, yellow } from "picocolors";
+import { cyan, red } from "picocolors";
 import { parse, stringify } from "smol-toml";
 import terminalLink from "terminal-link";
 import { copy } from "./copy";
@@ -104,18 +104,19 @@ export const installPythonDependencies = (
     const installSuccessful = tryPoetryInstall(noRoot);
     if (!installSuccessful) {
       console.error(
-        red("Install failed. Please install dependencies manually."),
+        red(
+          "Installing dependencies using poetry failed. Please check error log above and try running create-llama again.",
+        ),
       );
       process.exit(1);
     }
   } else {
-    console.warn(
-      yellow(
-        `Poetry is not available in the current environment. The Python dependencies will not be installed automatically.
-Please check ${terminalLink(
+    console.error(
+      red(
+        `Poetry is not available in the current environment. Please check ${terminalLink(
           "Poetry Installation",
           `https://python-poetry.org/docs/#installation`,
-        )} to install poetry first, then install the dependencies manually.`,
+        )} to install poetry first, then run create-llama again.`,
       ),
     );
     process.exit(1);
-- 
GitLab