[libpeas] Fix warning



commit 498eb80cb0b0c0e81a844de81751b1127cca044b
Author: Garrett Regier <garrettregier gmail com>
Date:   Sun Dec 11 08:35:02 2011 -0800

    Fix warning
    
    The warning is only emitted when the prop_name is invalid.

 loaders/gjs/peas-plugin-loader-gjs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/loaders/gjs/peas-plugin-loader-gjs.c b/loaders/gjs/peas-plugin-loader-gjs.c
index b120598..264d8a1 100644
--- a/loaders/gjs/peas-plugin-loader-gjs.c
+++ b/loaders/gjs/peas-plugin-loader-gjs.c
@@ -271,8 +271,8 @@ peas_plugin_loader_gjs_create_extension (PeasPluginLoader *loader,
           !JSVAL_IS_STRING (prop_name_val) ||
           !gjs_string_to_utf8 (js_context, prop_name_val, &prop_name))
         {
-          g_warning ("Extension '%s' in plugin '%s' in not a valid "
-                     "constructor object", prop_name,
+          g_warning ("Invalid extension in plugin '%s' it is not a valid "
+                     "constructor object",
                      peas_plugin_info_get_module_name (info));
           continue;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]