Fix incorrect warning/exception originator
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 24 Nov 2011 09:01:59 +0000 (10:01 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Thu, 4 Apr 2013 06:18:22 +0000 (08:18 +0200)
commit5e0e5426b36b5df5f9d1394068cd9f7f1c81087a
tree7c9af8fbe143cf9cf1a93636b401810c4b78e036
parentf820092840ce4cf741a762c80409a0c83197cc2c
Fix incorrect warning/exception originator

Until now we would report the second to last function as the
exception originator, whereas we need to report the first after
skipping the usual suspects of throw_exception etc
Changes
lib/DBIx/Class/Carp.pm
lib/DBIx/Class/Exception.pm
t/106dbic_carp.t
t/61findnot.t