ivi-shell: Say something when configuration is missing
When ivi-module is not set in weston.conf, we probably want to tell the user about their error instead of just dying. Signed-off-by: Ondřej Majerech <majerech.o@gmail.com> [Pekka: include Tanibata's suggestion, fix file name, fix surrounding coding style] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
01e98b65c6
commit
4bb9929411
@@ -382,9 +382,9 @@ ivi_shell_setting_create(struct ivi_shell_setting *dest,
|
|||||||
|
|
||||||
section = weston_config_get_section(config, "ivi-shell", NULL, NULL);
|
section = weston_config_get_section(config, "ivi-shell", NULL, NULL);
|
||||||
|
|
||||||
if (weston_config_section_get_string(
|
if (weston_config_section_get_string(section, "ivi-module",
|
||||||
section, "ivi-module", &dest->ivi_module, NULL) != 0)
|
&dest->ivi_module, NULL) != 0) {
|
||||||
{
|
weston_log("ivi-shell: No ivi-module set in config\n");
|
||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user