daemon: exit with WP_EXIT_CONFIG code if a component fails to load
This should be considered a configuration error: the user has specified some component in the config file that cannot be loaded. Changing the configuration file should fix it.
This commit is contained in:

committed by
Julian Bouzas

parent
65c94c71fd
commit
0fed249eb9
@@ -204,7 +204,7 @@ on_plugin_loaded (WpCore *core, GAsyncResult *res, gpointer data)
|
||||
}
|
||||
|
||||
wp_transition_return_error (WP_TRANSITION (self), g_error_new (
|
||||
WP_DOMAIN_DAEMON, WP_EXIT_SOFTWARE,
|
||||
WP_DOMAIN_DAEMON, WP_EXIT_CONFIG,
|
||||
"failed to activate component '%s': %s", self->curr_component->name,
|
||||
error->message));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user