summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo1_generator.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-02-20 13:54:12 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-03 14:09:56 +0200
commit21533a0079f9d0ca169eb6cad465527ba9a961bd (patch)
tree7e834866e341e4ead7115d58252baa0d97f37995 /src/bin/eolian/eo1_generator.c
parentbaaf92c93aa3f39642b6ff90213fbef26f937eda (diff)
Eolian/Generator: errors handling improvement.
Errors occuring during generation are now propagated to the main (i.e exit code). Logs have been ported to EINA_LOG instead of printf.
Diffstat (limited to '')
-rw-r--r--src/bin/eolian/eo1_generator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index c632bcac60..a02cfaede5 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -226,7 +226,7 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf)
226 226
227 if (!eolian_class_exists(classname)) 227 if (!eolian_class_exists(classname))
228 { 228 {
229 printf ("Class \"%s\" not found in database\n", classname); 229 ERR ("Class \"%s\" not found in database", classname);
230 return EINA_FALSE; 230 return EINA_FALSE;
231 } 231 }
232 232
@@ -508,7 +508,7 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf)
508 508
509 if (!str_classtype) 509 if (!str_classtype)
510 { 510 {
511 printf ("Unknown class type for class %s !\n", classname); 511 ERR ("Unknown class type for class %s !", classname);
512 return EINA_FALSE; 512 return EINA_FALSE;
513 } 513 }
514 514
@@ -590,7 +590,7 @@ eo1_source_end_generate(const char *classname, Eina_Strbuf *buf)
590 590
591 if (!in_meth && !in_prop) 591 if (!in_meth && !in_prop)
592 { 592 {
593 printf ("Failed to generate implementation of %s:%s - missing form super class\n", impl_class, funcname); 593 ERR ("Failed to generate implementation of %s:%s - missing form super class", impl_class, funcname);
594 return EINA_FALSE; 594 return EINA_FALSE;
595 } 595 }
596 596