Extension: Print actual error in the console

This commit is contained in:
Romain Vigier
2022-10-30 13:02:31 +01:00
parent ea53f9dbca
commit 51e9d92f4e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {