[gnome-maps] osmConnection: log error if OAuth fails
- From: Hashem Nasarat <hnasarat src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmConnection: log error if OAuth fails
- Date: Mon, 15 Feb 2016 08:34:08 +0000 (UTC)
commit f7d56100b0acbd33763370e85cfc46ad78f87ce7
Author: Hashem Nasarat <hashem riseup net>
Date: Sun Feb 14 21:52:30 2016 -0500
osmConnection: log error if OAuth fails
It's not good to silently swallow errors. Adding the log helped me
discover that I needed to install glib-networking.
https://bugzilla.gnome.org/show_bug.cgi?id=762059
src/osmConnection.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/osmConnection.js b/src/osmConnection.js
index d194884..cbddeea 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -28,6 +28,8 @@ const Rest = imports.gi.Rest;
const Secret = imports.gi.Secret;
const Soup = imports.gi.Soup;
+const Utils = imports.utils;
+
const BASE_URL = 'https://api.openstreetmap.org/api';
const API_VERSION = '0.6';
@@ -231,6 +233,7 @@ const OSMConnection = new Lang.Class({
_onRequestOAuthToken: function(error, callback) {
if (error) {
+ Utils.debug(error);
callback(false);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]