diff --git a/packages/scripts/init/db-setup.ts b/packages/scripts/init/db-setup.ts index bd2da2f8..dddbc0f5 100644 --- a/packages/scripts/init/db-setup.ts +++ b/packages/scripts/init/db-setup.ts @@ -5,6 +5,8 @@ import * as fs from "fs" import * as path from "path" +import { logger } from "@next-boilerplate/lib" + import { exec } from "./utils/cmd" import { getPath } from "./utils/path" @@ -34,13 +36,17 @@ export const dbSetup = async () => { cwd: appPath, successMessage: "Database migrated", name: "Migrating the database", - }).catch(() => {}) + }).catch(() => { + logger.error("Failed to migrate the database") + }) //? Prisma seed await exec("prisma db seed", { cwd: appPath, successMessage: "Database seeded", name: "Seeding the database", + }).catch(() => { + logger.error("Failed to seed the database") }) } }