billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=122fa9da0c0fa5277469b5733f81e58363e15b42
commit 122fa9da0c0fa5277469b5733f81e58363e15b42 Author: Boris Faure <bill...@gmail.com> Date: Mon Feb 23 22:51:33 2015 +0100 add some error messages Also change level of critical error messages --- src/bin/main.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/bin/main.c b/src/bin/main.c index 9bd6484..842db42 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -216,6 +216,7 @@ main_ipc_new(Ipc_Instance *inst) inst->borderless, inst->override, inst->maximized); if (!wn) { + CRITICAL(_("Could not create window.")); ecore_app_args_set(pargc, (const char **)pargv); free(nargv); return; @@ -284,6 +285,7 @@ main_ipc_new(Ipc_Instance *inst) inst->cd, inst->w, inst->h, inst->hold); if (!term) { + CRITICAL(_("Could not create terminal widget.")); win_free(wn); ecore_app_args_set(pargc, (const char **)pargv); free(nargv); @@ -555,7 +557,7 @@ elm_main(int argc, char **argv) _main_config = config_load("config"); if (key_bindings_load(_main_config) < 0) { - ERR(_("Could not initialize key bindings.")); + CRITICAL(_("Could not initialize key bindings.")); retval = EXIT_FAILURE; goto end; } @@ -567,7 +569,7 @@ elm_main(int argc, char **argv) args = ecore_getopt_parse(&options, values, argc, argv); if (args < 0) { - ERR(_("Could not parse command line options.")); + CRITICAL(_("Could not parse command line options.")); retval = EXIT_FAILURE; goto end; } @@ -582,8 +584,8 @@ elm_main(int argc, char **argv) if (args == argc) { - ERR(_("option %s requires an argument!"), argv[args-1]); - ERR(_("invalid options found. See --help.")); + CRITICAL(_("option %s requires an argument!"), argv[args-1]); + CRITICAL(_("invalid options found. See --help.")); goto end; } @@ -848,6 +850,7 @@ remote: config = NULL; if (!wn) { + CRITICAL(_("Could not create window.")); retval = EXIT_FAILURE; goto end; } @@ -858,6 +861,7 @@ remote: size_w, size_h, hold); if (!term) { + CRITICAL(_("Could not create terminal widget.")); retval = EXIT_FAILURE; goto end; } @@ -900,7 +904,8 @@ remote: next = term_next_get(next); else { - ERR(_("invalid argument found for option -S/--split. See --help.")); + CRITICAL(_("invalid argument found for option -S/--split." + " See --help.")); goto end; } } --