diff options
author | beber <beber> | 2005-12-01 19:20:36 +0000 |
---|---|---|
committer | beber <beber> | 2005-12-01 19:20:36 +0000 |
commit | 60577471d90d9082dc56307d91db3d96896fbac6 (patch) | |
tree | cabdc794588ac4a5f3d51d06206217dd01b81794 | |
parent | Make debug compil (diff) | |
download | espik-60577471d90d9082dc56307d91db3d96896fbac6.tar.xz |
more debug infos
Diffstat (limited to '')
-rw-r--r-- | src/espik_config.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/espik_config.c b/src/espik_config.c index a4ea5c6..82aba00 100644 --- a/src/espik_config.c +++ b/src/espik_config.c @@ -60,16 +60,18 @@ void espik_config_default_set () void espik_config_init () { - if (ecore_config_init (APPS_NAME) != ECORE_CONFIG_ERR_SUCC) + int ret; + + if ((ret = ecore_config_init (APPS_NAME)) != ECORE_CONFIG_ERR_SUCC) { - fprintf (stderr, "espik_config_init: init ecore_config failed\n"); - exit (-1); + fprintf (stderr, "espik_config_init: Init ecore_config failed (%d)\n", ret); + exit (ret); } - if (ecore_config_load () != ECORE_CONFIG_ERR_SUCC) + if ((ret = ecore_config_load ()) != ECORE_CONFIG_ERR_SUCC) { - fprintf (stderr, "espik_config_init: Load ecore_config failed\n"); - exit (-1); + fprintf (stderr, "espik_config_init: Load ecore_config failed (%d)\n", ret); + exit (ret); } } |