summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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'}) {