extension: log message if extension could not be installed

https://bugzilla.gnome.org/show_bug.cgi?id=776940
This commit is contained in:
Gautier Pelloux-Prayer 2017-01-06 13:08:29 +01:00 committed by Marco Trevisan (Treviño)
parent a46af9edf0
commit 35a9c3ec86

View File

@ -233,7 +233,9 @@ var InstallExtensionDialog = new Lang.Class({
let dir = Gio.File.new_for_path(GLib.build_filenamev([global.userdatadir, 'extensions', uuid]));
let invocation = this._invocation;
function errback(code, message) {
invocation.return_dbus_error('org.gnome.Shell.' + code, message ? message.toString() : '');
let msg = message ? message.toString() : '';
log('Error while installing %s: %s (%s)'.format(uuid, code, msg));
invocation.return_dbus_error('org.gnome.Shell.' + code, msg);
}
function callback() {