Ah ok.  

I'm redoing some stuff, so it's not imperative I stick to anything.  
Essentially, leaving INSERT or DELETE commands without any capture of 
errors makes me lose sleep at night.  With pg, it would have 
res.error_message which was returned so some kind of $SDOUT or some kind of 
feedback.  

On Monday, February 10, 2020 at 3:46:53 PM UTC-5, Jeremy Evans wrote:
>
> On Monday, February 10, 2020 at 12:27:26 PM UTC-8, BeeRich33 wrote:
>>
>> Is there any way I can replicate a *PG* gem error message?
>>
>> return res.error_message
>>
>
> In general, Sequel wraps driver errors and uses the same message preceded 
> by the exception class name. The underlying exception is available in 
> #wrapped_exception, and maybe #cause in modern versions of Ruby.
>
> If that isn't enough information to go on, you'll have to provide an 
> example of what you want.  
>
> Thanks,
> Jeremy
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/b473859b-1510-434b-bd1b-e6c11462e874%40googlegroups.com.

Reply via email to