mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
extensionUtils: don't log verbosely on missing extension directory
A missing extension directory isn't worth debug spew, so check if the error when reading the extension directory is NOT_FOUND, and if so, suppress output. https://bugzilla.gnome.org/show_bug.cgi?id=685466
This commit is contained in:
parent
b99bb3d4bb
commit
9395f310d6
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ const ExtensionFinder = new Lang.Class({
|
|||
try {
|
||||
fileEnum = dir.enumerate_children('standard::*', Gio.FileQueryInfoFlags.NONE, null);
|
||||
} catch(e) {
|
||||
logError(e, 'Could not enumerate extensions directory');
|
||||
if (e.domain != Gio.io_error_quark() || e.code != Gio.IOErrorEnum.NOT_FOUND)
|
||||
logError(e, 'Could not enumerate extensions directory');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue