supabase / postgrest-dart

Dart client for PostgREST
https://supabase.com
MIT License
136 stars 38 forks source link

add toString method to PostgrestError #39

Closed k0shk0sh closed 3 years ago

k0shk0sh commented 3 years ago

What kind of change does this PR introduce?

Feature (kinda)

What is the current behavior?

Currently, logging the error only shows instance of PostgrestError.

What is the new behavior?

When logging supabase errors, the toString will be invoked and that will result in better debugging.

Additional context

N/A

dshukertjr commented 3 years ago

Love this PR 😄 Amazing work @k0shk0sh 🚀

k0shk0sh commented 3 years ago

Love this PR 😄 Amazing work @k0shk0sh 🚀

as much as its easy, its actually really beneficial. 😅