Skip to content

Commit

Permalink
use console.error for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed May 9, 2023
1 parent 90d29b9 commit 99c633f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/scripts/run/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export async function dev(
await new Promise(async (resolve, reject) => {
httpServer.close(async (serverError: any) => {
if (serverError) {
console.log('There was an error while closing the server');
console.log(serverError);
console.error('There was an error while closing the server');
console.error(serverError);
return reject(serverError);
}

Expand All @@ -133,8 +133,8 @@ export async function dev(
try {
await prismaClient?.disconnect?.();
} catch (disconnectionError) {
console.log('There was an error while disconnecting from the database');
console.log(disconnectionError);
console.error('There was an error while disconnecting from the database');
console.error(disconnectionError);
throw disconnectionError;
}

Expand Down
1 change: 0 additions & 1 deletion prisma-utils/.gitignore

This file was deleted.

0 comments on commit 99c633f

Please sign in to comment.