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}` ) 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}` )