From 3b712427964d187605ea114d15852cb1c0978648 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 8 Jan 2025 18:29:21 +0100 Subject: Drop default service; warn and fall back to ÖBB in hafas-m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Travel/Status/DE/HAFAS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travel/Status') diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index e71e9f0..c2f05e5 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -60,7 +60,7 @@ sub new { } if ( not defined $service ) { - $service = $conf{service} = 'DB'; + confess("You must specify a service"); } if ( defined $service and not exists $hafas_instance->{$service} ) { -- cgit v1.2.3