mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-06 09:40:21 +01:00
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:
parent
01e98b65c6
commit
4bb9929411
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue