Hi, note that as the DBI doc says: "The DBI resets $h->err to undef before almost all DBI method calls, so the value only has a short lifespan." Likely the Dancer2 plugin is making multiple calls wrapped into one method.
Did you try accessing the error via the DBI dynamic attributes $DBI::err and $DBI::errstr (although they are probably cleared at the same time)? Or turning on tracing so you can see the output directly (set $ENV{DBI_TRACE} to a positive integer)?
Hope this helps!
In reply to Re: Dancer2::Plugin::Database and database errors
by 1nickt
in thread Dancer2::Plugin::Database and database errors
by lee_crites
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |