@korajs/server 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -503,7 +503,9 @@ var PostgresServerStore = class {
503
503
  try {
504
504
  await this.db.execute(sql.raw(alterSql));
505
505
  } catch (e) {
506
- if (!(e instanceof Error && (e.message.includes("already exists") || e.message.includes("duplicate column")))) {
506
+ const msg = e instanceof Error ? e.message : "";
507
+ const causeMsg = e instanceof Error && e.cause instanceof Error ? e.cause.message : "";
508
+ if (!msg.includes("already exists") && !msg.includes("duplicate column") && !causeMsg.includes("already exists") && !causeMsg.includes("duplicate column")) {
507
509
  throw e;
508
510
  }
509
511
  }