Skip to content
Snippets Groups Projects
Commit 9a51e863 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

HAFAS->new: Die if an unknown service is requested

parent 86ade9b0
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,10 @@ sub new {
$service = 'DB';
}
if ( defined $service and not exists $hafas_instance{$service} ) {
confess("The service '$service' is not supported");
}
my $ref = {
active_service => $service,
developer_mode => $conf{developer_mode},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment