@prisma-next/cli 0.1.0-pr.63.2 → 0.1.0-pr.63.4

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/cli.js CHANGED
@@ -1342,12 +1342,13 @@ function createDbInitCommand() {
1342
1342
  });
1343
1343
  } catch (error) {
1344
1344
  const message = error instanceof Error ? error.message : String(error);
1345
+ const code = error.code;
1345
1346
  const redacted = redactDatabaseUrl(dbUrl);
1346
1347
  throw errorRuntime("Database connection failed", {
1347
1348
  why: message,
1348
1349
  fix: "Verify the database URL, ensure the database is reachable, and confirm credentials/permissions",
1349
1350
  meta: {
1350
- ...typeof error.code !== "undefined" ? { code: error.code } : {},
1351
+ ...typeof code !== "undefined" ? { code } : {},
1351
1352
  ...redacted
1352
1353
  }
1353
1354
  });