Skip to content

Commit

Permalink
chore(errors): improve message for missing attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Nov 28, 2024
1 parent 9bf48b6 commit 4e8f232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const E_UNMANAGED_DB_CONNECTION = createError<[string]>(
)

export const E_MISSING_MODEL_ATTRIBUTE = createError<[string, string, string]>(
'"%s" expects "%s" to exist on "%s" model, but is missing',
'Relation "%s" expects "%s" to exist on "%s" model, but is missing. Did you forget to define the column?',
'E_MISSING_MODEL_ATTRIBUTE',
500
)
Expand Down

0 comments on commit 4e8f232

Please sign in to comment.