From 184162c9b049dae3dd1164682abe5fe10bd14708 Mon Sep 17 00:00:00 2001 From: mStenz <77238045+Stenz123@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:56:38 +0200 Subject: [PATCH 1/2] Fix typo in db error message --- .../src/common/__tests__/handle-postgres-database-error.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 abae66361fc3f..7bac2d711efbd 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}` ) From 2f03e939eb94e412b8bb882cdf7623ab4f917f02 Mon Sep 17 00:00:00 2001 From: mStenz <77238045+Stenz123@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:50:32 +0200 Subject: [PATCH 2/2] Fix typo in db error message --- .../core/utils/src/common/handle-postgres-database-error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 64866a5e67fcd..3c0560b38e995 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}` )