summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-08-13 17:28:54 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-08-13 17:28:54 +0200
commit5f87f2bb33116ae072b7320fe9cedace0050d5d1 (patch)
tree25a7e968508dad309df6d51831c9d12ae7545abf /bin
parentc7f28c4a85c8f98c90761274050680b185d0f99a (diff)
Add $efa->setup_error() to replace $efa->{'error'} check
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index ad57e01..b7b61d4 100755
--- a/bin/efa
+++ b/bin/efa
@@ -100,8 +100,8 @@ $efa = WWW::Efa->new(
max_interchanges => $opt->{'max-change'},
);
-if ($efa->{'error'}) {
- die $efa->{'error'}->as_string();
+if (my $err = $efa->setup_error()) {
+ die $err->as_string();
}
if ($opt->{'test-parse'}) {