Capture file load errors for later use.
authorRussell Jenkins <veryrusty@gmail.com>
Wed, 29 Apr 2015 00:49:14 +0000 (10:49 +1000)
committerBrian Cassidy <brian.cassidy@gmail.com>
Wed, 29 Apr 2015 23:03:29 +0000 (20:03 -0300)
commit77afca3b1e24dee5bc1cecbc30fd3be9ea448889
treeaf02b02bcd62afbe6a880b6cfa394cea50a3d8ae
parent67a1cd509bfc3f77a4fcaf42710de01597987bb0
Capture file load errors for later use.

Localizing $@ also implies that any load error wasn't available outside
of the do block. Instead of always returning 1, return $@ so any error
is captured. The error is then rethrown if use_ext is enabled.

Signed-off-by: Brian Cassidy <brian.cassidy@gmail.com>
lib/Config/Any.pm