mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix show exact prisma exception when starting proxy
This commit is contained in:
parent
5e12364fad
commit
3a06e2e425
1 changed files with 2 additions and 2 deletions
|
@ -745,9 +745,9 @@ class PrismaClient:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["prisma", "db", "push", "--accept-data-loss"]
|
["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
|
) # 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(
|
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:
|
finally:
|
||||||
os.chdir(original_dir)
|
os.chdir(original_dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue