Skip to content

Commit

Permalink
Fixed displaying errors when scanning inbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
shumingch committed Jun 4, 2017
1 parent 46e1a02 commit b4807d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GmailFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const GmailFeed = new Lang.Class({
}
else {
if (_DEBUG) console.log('Message body:' + msg.response_body.data);
const err = new Error('Google connection Status: ' + msg.status + ' ' + msg.message_body.data);
const err = new Error('Error scanning inbox: code ' + msg.status_code);
callback(err);
}
});
Expand Down
3 changes: 2 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const GmailMessageTray = Me.imports.GmailMessageTray.GmailMessageTray;
const Mainloop = imports.mainloop;
const console = Me.imports.console.console;

const _version = "3";
const _version = "4";

let extension;
let Soup, sSes, Gio, Goa;
Expand Down Expand Up @@ -83,6 +83,7 @@ const Extension = new Lang.Class({

_processData: function (err, folders, _conn) {
if(err){
this.messageTray.showError(err.message);
throw err;
}
let sU = 0;
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
],
"url": "https://github.com/shumingch/GmailMessageTray",
"uuid": "GmailMessageTray@shuming0207.gmail.com",
"version": 3
"version": 4
}

0 comments on commit b4807d8

Please sign in to comment.