It seems to errors would either need to be JSON.stringified or their messages accessed for proper error logging.
Currently the output is:
Error: Product insert/update failed: [object Object]
I assumed that all errors here are uniform in their structure (I didn't do any further testing with other errors) and that accessing the message might be preferable, although the loss of the error code might be a big downside:
I just started with Supabase, therefore this PR can be seen as a slightly more detailed issue.
Feel free to edit it however you see fit without any further communication.
It seems to errors would either need to be JSON.stringified or their messages accessed for proper error logging.
Currently the output is:
Error: Product insert/update failed: [object Object]
I assumed that all errors here are uniform in their structure (I didn't do any further testing with other errors) and that accessing the message might be preferable, although the loss of the error code might be a big downside:
I just started with Supabase, therefore this PR can be seen as a slightly more detailed issue. Feel free to edit it however you see fit without any further communication.