Skip to content
Snippets Groups Projects
Commit 4bb99294 authored by Ondřej Majerech's avatar Ondřej Majerech Committed by Pekka Paalanen
Browse files

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: default avatarOndřej Majerech <majerech.o@gmail.com>
[Pekka: include Tanibata's suggestion, fix file name, fix surrounding
coding style]
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent 01e98b65
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment