From a0aa210f82a9e50068f0b9114ff4f1bd432c0023 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 6 Apr 2019 21:50:47 +0200 Subject: Rename ->error to ->errstr --- lib/Travel/Status/DE/DBWagenreihung.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm index 6ded3ca..ce8cc63 100644 --- a/lib/Travel/Status/DE/DBWagenreihung.pm +++ b/lib/Travel/Status/DE/DBWagenreihung.pm @@ -81,7 +81,7 @@ sub get_wagonorder { $self->{meta} = $json->{meta}; } -sub error { +sub errstr { my ($self) = @_; return $self->{errstr}; @@ -455,7 +455,7 @@ Gives the train's direction of travel. Returns 0 if the train will depart towards position 0 and 100 if the train will depart towards the other platform end (mnemonic: towards the 100% position). -=item $wr->error +=item $wr->errstr In case of a fatal HTTP or backend error, returns a string describing it. Returns undef otherwise. -- cgit v1.2.3