summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-06 21:50:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-06 21:50:47 +0200
commita0aa210f82a9e50068f0b9114ff4f1bd432c0023 (patch)
tree6e3acbe001c846e9f7fda4dbc09854c4f4256f54
parentc38b7643f85c9530ab2e3ad101be3ce130fadb86 (diff)
Rename ->error to ->errstr
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm4
1 files 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.