[gnome-maps] openTripPlanner: Debug print reason phrase on error
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] openTripPlanner: Debug print reason phrase on error
- Date: Mon, 17 Aug 2020 20:06:36 +0000 (UTC)
commit c360d4ee8862b3bc96ff1e21bcedb31eab4e8b60
Author: Marcus Lundblad <ml update uu se>
Date: Mon Aug 17 22:04:46 2020 +0200
openTripPlanner: Debug print reason phrase on error
Change the debug message on error to print the reason
phrase.
src/transitplugins/openTripPlanner.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/transitplugins/openTripPlanner.js b/src/transitplugins/openTripPlanner.js
index 6ad9a565..d1a3e3d3 100644
--- a/src/transitplugins/openTripPlanner.js
+++ b/src/transitplugins/openTripPlanner.js
@@ -497,7 +497,7 @@ var OpenTripPlanner = class OpenTripPlanner {
this._session.queue_message(request, (obj, message) => {
if (message.status_code !== Soup.Status.OK) {
Utils.debug('Failed to get route plan from router ' +
- this._router + ' ' + message);
+ this._router + ' ' + message.reason_phrase);
callback(null);
} else {
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]