From: <dg...@su...> - 2009-01-10 22:25:27
|
Author: dgollub Date: Sat Jan 10 23:24:51 2009 New Revision: 5079 URL: http://www.opensync.org/changeset/5079 Log: Clear format/plugin-env loading errors. Print at least a warning. Modified: trunk/tools/osyncplugin.c Modified: trunk/tools/osyncplugin.c ============================================================================== --- trunk/tools/osyncplugin.c Sat Jan 10 23:08:29 2009 (r5078) +++ trunk/tools/osyncplugin.c Sat Jan 10 23:24:51 2009 (r5079) @@ -348,9 +348,21 @@ if (!osync_format_env_load_plugins(format_env, formatpath, error)) goto error_free_formatenv; + if (osync_error_is_set(error)) { + fprintf(stderr, "WARNING! Some plugins couldn't get loaded in " + "format plugin environment: %s\n", osync_error_print(error)); + osync_error_unref(error); + } + if (!osync_plugin_env_load(plugin_env, pluginpath, error)) goto error_free_pluginenv; + if (osync_error_is_set(error)) { + fprintf(stderr, "WARNING! Some plugins couldn't get loaded in " + "plugin environment: %s\n", osync_error_print(error)); + osync_error_unref(error); + } + if (!(plugin = osync_plugin_env_find_plugin(plugin_env, pluginname))) { osync_error_set(error, OSYNC_ERROR_PLUGIN_NOT_FOUND, "Plugin not found: \"%s\"", pluginname); goto error_free_pluginenv; |