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:
Ondřej Majerech 2014-12-06 02:49:18 +01:00 committed by Pekka Paalanen
parent 01e98b65c6
commit 4bb9929411
1 changed files with 3 additions and 3 deletions

View File

@ -382,9 +382,9 @@ ivi_shell_setting_create(struct ivi_shell_setting *dest,
section = weston_config_get_section(config, "ivi-shell", NULL, NULL);
if (weston_config_section_get_string(
section, "ivi-module", &dest->ivi_module, NULL) != 0)
{
if (weston_config_section_get_string(section, "ivi-module",
&dest->ivi_module, NULL) != 0) {
weston_log("ivi-shell: No ivi-module set in config\n");
result = -1;
}