Extension: Print actual error in the console
This commit is contained in:
@@ -253,10 +253,10 @@ var Timer = class extends GObject.Object {
|
||||
} catch (e) {
|
||||
const [latitude, longitude] = this.#settings.get_value('location').deepUnpack();
|
||||
if (latitude >= -90 && latitude <= 90 && longitude >= -180 && longitude <= 180) {
|
||||
console.error(`[${Me.metadata.name}] Unable to retrieve the location, using the last known location instead.`);
|
||||
console.error(`[${Me.metadata.name}] Unable to retrieve the location, using the last known location instead.\n${e}`);
|
||||
this.#updateSuntimes();
|
||||
} else {
|
||||
console.error(`[${Me.metadata.name}] Unable to retrieve the location, using the manual schedule times instead.`);
|
||||
console.error(`[${Me.metadata.name}] Unable to retrieve the location, using the manual schedule times instead.\n${e}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ var BackgroundButton = GObject.registerClass({
|
||||
if (!this.#isContentTypeSupported(Gio.content_type_guess(path, null)[0]))
|
||||
throw new Error();
|
||||
} catch (e) {
|
||||
console.error(`[${Me.metadata.name}] No suitable background file found in ${file.get_path()}`);
|
||||
console.error(`[${Me.metadata.name}] No suitable background file found in ${file.get_path()}.\n${e}`);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user