From 937a09c0845abd97a9b216d6e34b5747b95ac9f5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Jan 2014 18:01:59 +0100 Subject: Add an exception class for EFA backend errors, pass provided message --- bin/efa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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; } -- cgit v1.2.3