diff options
author | Boris Faure <billiob@gmail.com> | 2015-02-23 22:51:33 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-02-23 22:51:33 +0100 |
commit | 122fa9da0c0fa5277469b5733f81e58363e15b42 (patch) | |
tree | fffd6fd7e0a9acc896cf91c3fed1b96b86330d1e /src | |
parent | f13d9ad1116bea50fa98c34a8e9c1e85b09e14f6 (diff) |
add some error messages
Also change level of critical error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/main.c | 15 |
1 files 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) | |||
216 | inst->borderless, inst->override, inst->maximized); | 216 | inst->borderless, inst->override, inst->maximized); |
217 | if (!wn) | 217 | if (!wn) |
218 | { | 218 | { |
219 | CRITICAL(_("Could not create window.")); | ||
219 | ecore_app_args_set(pargc, (const char **)pargv); | 220 | ecore_app_args_set(pargc, (const char **)pargv); |
220 | free(nargv); | 221 | free(nargv); |
221 | return; | 222 | return; |
@@ -284,6 +285,7 @@ main_ipc_new(Ipc_Instance *inst) | |||
284 | inst->cd, inst->w, inst->h, inst->hold); | 285 | inst->cd, inst->w, inst->h, inst->hold); |
285 | if (!term) | 286 | if (!term) |
286 | { | 287 | { |
288 | CRITICAL(_("Could not create terminal widget.")); | ||
287 | win_free(wn); | 289 | win_free(wn); |
288 | ecore_app_args_set(pargc, (const char **)pargv); | 290 | ecore_app_args_set(pargc, (const char **)pargv); |
289 | free(nargv); | 291 | free(nargv); |
@@ -555,7 +557,7 @@ elm_main(int argc, char **argv) | |||
555 | _main_config = config_load("config"); | 557 | _main_config = config_load("config"); |
556 | if (key_bindings_load(_main_config) < 0) | 558 | if (key_bindings_load(_main_config) < 0) |
557 | { | 559 | { |
558 | ERR(_("Could not initialize key bindings.")); | 560 | CRITICAL(_("Could not initialize key bindings.")); |
559 | retval = EXIT_FAILURE; | 561 | retval = EXIT_FAILURE; |
560 | goto end; | 562 | goto end; |
561 | } | 563 | } |
@@ -567,7 +569,7 @@ elm_main(int argc, char **argv) | |||
567 | args = ecore_getopt_parse(&options, values, argc, argv); | 569 | args = ecore_getopt_parse(&options, values, argc, argv); |
568 | if (args < 0) | 570 | if (args < 0) |
569 | { | 571 | { |
570 | ERR(_("Could not parse command line options.")); | 572 | CRITICAL(_("Could not parse command line options.")); |
571 | retval = EXIT_FAILURE; | 573 | retval = EXIT_FAILURE; |
572 | goto end; | 574 | goto end; |
573 | } | 575 | } |
@@ -582,8 +584,8 @@ elm_main(int argc, char **argv) | |||
582 | 584 | ||
583 | if (args == argc) | 585 | if (args == argc) |
584 | { | 586 | { |
585 | ERR(_("option %s requires an argument!"), argv[args-1]); | 587 | CRITICAL(_("option %s requires an argument!"), argv[args-1]); |
586 | ERR(_("invalid options found. See --help.")); | 588 | CRITICAL(_("invalid options found. See --help.")); |
587 | goto end; | 589 | goto end; |
588 | } | 590 | } |
589 | 591 | ||
@@ -848,6 +850,7 @@ remote: | |||
848 | config = NULL; | 850 | config = NULL; |
849 | if (!wn) | 851 | if (!wn) |
850 | { | 852 | { |
853 | CRITICAL(_("Could not create window.")); | ||
851 | retval = EXIT_FAILURE; | 854 | retval = EXIT_FAILURE; |
852 | goto end; | 855 | goto end; |
853 | } | 856 | } |
@@ -858,6 +861,7 @@ remote: | |||
858 | size_w, size_h, hold); | 861 | size_w, size_h, hold); |
859 | if (!term) | 862 | if (!term) |
860 | { | 863 | { |
864 | CRITICAL(_("Could not create terminal widget.")); | ||
861 | retval = EXIT_FAILURE; | 865 | retval = EXIT_FAILURE; |
862 | goto end; | 866 | goto end; |
863 | } | 867 | } |
@@ -900,7 +904,8 @@ remote: | |||
900 | next = term_next_get(next); | 904 | next = term_next_get(next); |
901 | else | 905 | else |
902 | { | 906 | { |
903 | ERR(_("invalid argument found for option -S/--split. See --help.")); | 907 | CRITICAL(_("invalid argument found for option -S/--split." |
908 | " See --help.")); | ||
904 | goto end; | 909 | goto end; |
905 | } | 910 | } |
906 | } | 911 | } |