diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-12 18:01:59 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-12 18:01:59 +0100 |
commit | 937a09c0845abd97a9b216d6e34b5747b95ac9f5 (patch) | |
tree | aa499cfcc042872a9df778fef05aed1fb7d5edf9 /bin/efa | |
parent | a4f855c7f7d6fba7b6c249ecb174cb79acd55fad (diff) |
Add an exception class for EFA backend errors, pass provided message
Diffstat (limited to 'bin/efa')
-rwxr-xr-x | bin/efa | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |