Unverified Commit 16763093 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

IRIS: show no timetable / no schedule in devmode

parent 042b6503
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -491,6 +491,9 @@ sub get_station {
		my $station_node = ( $xml_st->findnodes('//station') )[0];

		if ( not $station_node ) {
			if ( $self->{developer_mode} ) {
				say '  no timetable';
			}
			if ( $opt{root} ) {
				$self->{errstr}
				  = "Station '$station' has no associated timetable";
@@ -682,6 +685,12 @@ sub get_timetable {
		$self->add_result( $station, $eva, $s );
	}

	if ( $self->{developer_mode}
		and not scalar $xml->findnodes('/timetable/s') )
	{
		say '  no scheduled trains';
	}

	return $self;
}