Skip to content

Commit 17686c9

Browse files
committed
log failed statement as error
1 parent c142a92 commit 17686c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/db-utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ export async function cleanupDb(prisma: PrismaClient) {
147147
try {
148148
await prisma.$executeRawUnsafe(`${statement};`)
149149
} catch (error) {
150-
console.warn(`Failed to execute statement: ${statement}`)
151-
throw error
150+
console.error(`Failed to execute statement: ${statement}`, error)
152151
}
153152
}
154153
}

0 commit comments

Comments
 (0)