Improve prisma errors for missing generate step

This commit is contained in:
nicktrn
2024-07-17 09:53:18 +01:00
parent dbda820a71
commit c2707800aa
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---
Improve prisma errors for missing postinstall
+7
View File
@@ -639,6 +639,13 @@ function checkLogsForErrors(logs: string) {
docs.config.prisma
)}`,
},
{
regex: /@prisma\/client did not initialize yet/,
message: `Prisma client not initialized yet.\nDid you forget to add the postinstall script? ${cliLink(
"Config docs",
docs.config.prisma
)}`,
},
{
regex: /sh: 1: (?<packageOrBinary>.*): not found/,
message: `$packageOrBinary not found\n\nIf it's a package: Include it in ${cliLink(