From 9395f310d64cb2cb441f9ef0d5702cda476294f6 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 4 Oct 2012 00:57:06 -0400 Subject: [PATCH] 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 --- js/misc/extensionUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/misc/extensionUtils.js b/js/misc/extensionUtils.js index 40e001bbe..e0969c45c 100644 --- a/js/misc/extensionUtils.js +++ b/js/misc/extensionUtils.js @@ -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; }