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
@ -161,7 +161,8 @@ const ExtensionFinder = new Lang.Class({
|
|||||||
try {
|
try {
|
||||||
fileEnum = dir.enumerate_children('standard::*', Gio.FileQueryInfoFlags.NONE, null);
|
fileEnum = dir.enumerate_children('standard::*', Gio.FileQueryInfoFlags.NONE, null);
|
||||||
} catch(e) {
|
} 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user