Does Try::Tiny strike your fancy? It'll put the error into $_ in the catch block.
Short of that, I'm fairly certain it'll crash your thread if it fails. On Fri, Mar 15, 2019, 10:22 PM Luc Larochelle <llaroche...@gmail.com> wrote: > Hello everyone, > > While a 'select' statement can be double checked by the presence of the > returned data, how can I confirm that statements such as 'insert' , > 'update' or 'delete' are successful ? > > For instance, using SQL::Abstract and some helpers > > helper insertOne => sub { > my ($c,$table) = @_; > $c->sqlite->db->insert($table, $c->element); > }; > > > > I've seen in the documentation that one could *eval* and look into $@ , > but is there a more "inline" way to do this ? > > Cheers ! > > Luc > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mojolicious+unsubscr...@googlegroups.com. > To post to this group, send email to mojolicious@googlegroups.com. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.