fix show exact prisma exception when starting proxy

This commit is contained in:
Ishaan Jaff 2024-07-09 18:20:09 -07:00
parent 5e12364fad
commit 3a06e2e425

View file

@ -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)