1
Unable to customize trigger function exception error
Source: supabase/supabase#28129 · opened by @saqibameen
Describe the problem
I create signedUploadUrl and then allow user to upload files. Post upload, I use trigger function to do some validations are operations. If something goes wrong, I raise an exception something like this:
It gives error something like this:
To Reproduce
1. create trigger on upload in buck that raises an exception
2. upload a file
Expected behavior
This error is user facing. Allow customization of this error so that I can send a better error message.
System information
• OS: macOS
• Version of supabase-js: 2.44.4
I create signedUploadUrl and then allow user to upload files. Post upload, I use trigger function to do some validations are operations. If something goes wrong, I raise an exception something like this:
It gives error something like this:
To Reproduce
1. create trigger on upload in buck that raises an exception
2. upload a file
Expected behavior
This error is user facing. Allow customization of this error so that I can send a better error message.
System information
• OS: macOS
• Version of supabase-js: 2.44.4
No pledges yet. Be the first to back this.
Comments
Similar requests
Standardize Error Codes Across Supabase Ecosystem
1 vote · 0 comments
Send error codes for errors
3 votes · 0 comments
Proper Error Propagation for Triggers on auth.users Table
2 votes · 0 comments
Show schema of function in database triggers list
2 votes · 0 comments
Bubble up errors on dependency graph failures
3 votes · 0 comments
No comments yet.