summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-12 18:01:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-12 18:01:59 +0100
commit937a09c0845abd97a9b216d6e34b5747b95ac9f5 (patch)
treeaa499cfcc042872a9df778fef05aed1fb7d5edf9 /bin
parenta4f855c7f7d6fba7b6c249ecb174cb79acd55fad (diff)
Add an exception class for EFA backend errors, pass provided message
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index 287ef18..5982c12 100755
--- a/bin/efa
+++ b/bin/efa
@@ -75,8 +75,8 @@ sub handle_efa_exception {
);
exit 4;
}
- if ( $e->isa('Travel::Routing::DE::VRR::Exception::NoConnections') ) {
- printf STDERR ( "Error: %s: %s\n", $e->description, $e->error );
+ if ( $e->isa('Travel::Routing::DE::VRR::Exception::Other') ) {
+ printf STDERR ( "Error: %s: %s\n", $e->description, $e->message );
exit 5;
}