[PR #6168] [MERGED] chore: improve drizzle-adapter errors #6494

Closed
opened 2026-03-13 13:01:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6168
Author: @ping-maxwell
Created: 11/21/2025
Status: Merged
Merged: 11/21/2025
Merged by: @Bekacru

Base: canaryHead: chore/improve-drizzle-adapter-errors


📝 Commits (1)

  • 660d905 chore: improve drizzle-adapter errors

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts (+4 -4)

📄 Description

Far too often Drizzle schema errors confuse our users into thinking that they have a faulty schema with their database, when in reality it was their Drizzle schema which was wrong.

This PR makes those errors more specifically refer to their Drizzle schema.


Summary by cubic

Clarified Drizzle adapter errors to explicitly reference the Drizzle schema, reducing confusion with the database schema. Updated messages for missing schema, unknown fields, and missing query models when joins are enabled.

Written for commit 660d905430. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6168 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `chore/improve-drizzle-adapter-errors` --- ### 📝 Commits (1) - [`660d905`](https://github.com/better-auth/better-auth/commit/660d90543082094840e9325408c16dce6f58d5cc) chore: improve drizzle-adapter errors ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts` (+4 -4) </details> ### 📄 Description Far too often Drizzle schema errors confuse our users into thinking that they have a faulty schema with their database, when in reality it was their Drizzle schema which was wrong. This PR makes those errors more specifically refer to their Drizzle schema. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Clarified Drizzle adapter errors to explicitly reference the Drizzle schema, reducing confusion with the database schema. Updated messages for missing schema, unknown fields, and missing query models when joins are enabled. <sup>Written for commit 660d90543082094840e9325408c16dce6f58d5cc. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:01:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#6494