From 25d1dfdea53afd3d7c8b2b96cda957e37a933a5a Mon Sep 17 00:00:00 2001 From: mStenz <77238045+Stenz123@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:48:22 +0100 Subject: [PATCH] Fix typo in db error message (#9612) --- .../src/common/__tests__/handle-postgres-database-error.spec.ts | 2 +- .../core/utils/src/common/handle-postgres-database-error.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/utils/src/common/__tests__/handle-postgres-database-error.spec.ts b/packages/core/utils/src/common/__tests__/handle-postgres-database-error.spec.ts index abae66361f..7bac2d711e 100644 --- a/packages/core/utils/src/common/__tests__/handle-postgres-database-error.spec.ts +++ b/packages/core/utils/src/common/__tests__/handle-postgres-database-error.spec.ts @@ -37,7 +37,7 @@ describe("handlePostgresDataError", function () { - You have a PostgreSQL database running - You have passed the correct credentials in medusa-config.js - You have formatted the database connection string correctly. See below: - "postgres://[username]:[password]@[host]:[post]/[db_name]" - If there is no password, you can omit it from the connection string + "postgres://[username]:[password]@[host]:[port]/[db_name]" - If there is no password, you can omit it from the connection string ${EOL} ${error.message}` ) diff --git a/packages/core/utils/src/common/handle-postgres-database-error.ts b/packages/core/utils/src/common/handle-postgres-database-error.ts index 64866a5e67..3c0560b38e 100644 --- a/packages/core/utils/src/common/handle-postgres-database-error.ts +++ b/packages/core/utils/src/common/handle-postgres-database-error.ts @@ -21,7 +21,7 @@ export function handlePostgresDatabaseError(err: any): never { - You have a PostgreSQL database running - You have passed the correct credentials in medusa-config.js - You have formatted the database connection string correctly. See below: - "postgres://[username]:[password]@[host]:[post]/[db_name]" - If there is no password, you can omit it from the connection string + "postgres://[username]:[password]@[host]:[port]/[db_name]" - If there is no password, you can omit it from the connection string ${EOL} ${err.message}` )