diff options
-rw-r--r-- | libplanfahr/providers/hafas-bin6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libplanfahr/providers/hafas-bin6.c b/libplanfahr/providers/hafas-bin6.c index 6d50c9d..6d6587b 100644 --- a/libplanfahr/providers/hafas-bin6.c +++ b/libplanfahr/providers/hafas-bin6.c @@ -224,7 +224,8 @@ got_locs (SoupSession *session, SoupMessage *msg, gpointer user_data) g_set_error (&err, LPF_PROVIDER_ERROR, LPF_PROVIDER_ERROR_REQUEST_FAILED, - "HTTP request failed: %d", msg->status_code); + "Cannot get location: %s", + soup_status_get_phrase(msg->status_code)); goto out; } @@ -634,7 +635,8 @@ got_trips (SoupSession *session, SoupMessage *msg, gpointer user_data) g_set_error (&err, LPF_PROVIDER_ERROR, LPF_PROVIDER_ERROR_REQUEST_FAILED, - "HTTP request failed: %d", msg->status_code); + "Cannot get trips: %s", + soup_status_get_phrase(msg->status_code)); goto out; } |