We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a13ff commit 7ae0ff6Copy full SHA for 7ae0ff6
src/storage/database/knex.ts
@@ -798,10 +798,7 @@ export class DBError extends StorageBackendError implements RenderableError {
798
static fromDBError(pgError: DatabaseError, query?: string) {
799
switch (pgError.code) {
800
case '42501':
801
- return ERRORS.AccessDenied(
802
- 'new row violates row-level security policy',
803
- pgError
804
- ).withMetadata({
+ return ERRORS.AccessDenied('Database error: insufficient privilege', pgError).withMetadata({
805
query,
806
code: pgError.code,
807
})
0 commit comments