From 3a06e2e425dbc5e8084e0e98dab8040c48a63fcc Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 9 Jul 2024 18:20:09 -0700 Subject: [PATCH] fix show exact prisma exception when starting proxy --- litellm/proxy/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 661b0ce04f..435f5f9257 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -745,9 +745,9 @@ class PrismaClient: subprocess.run( ["prisma", "db", "push", "--accept-data-loss"] ) # this looks like a weird edge case when prisma just wont start on render. we need to have the --accept-data-loss - except: + except Exception as e: raise Exception( - f"Unable to run prisma commands. Run `pip install prisma`" + f"Unable to run prisma commands. Run `pip install prisma` Got Exception: {(str(e))}" ) finally: os.chdir(original_dir)