summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-06-22 20:49:38 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2017-07-05 17:13:27 -0300
commit3a07ac365bbf8119e9fcb7efee5cdbf18ac77bd7 (patch)
treeba55fdcb94876d19f69b6e7e51568b79756c4b35
parent9dd52d70649a52a5306a6ea8afbff0e87bcc019d (diff)
downloadefl-3a07ac365bbf8119e9fcb7efee5cdbf18ac77bd7.tar.gz
eolian_mono: Print a warning instead of an error
Print a warning instead of an error when an exception is caught in a event handler in the managed side.
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index f0120ceccf..36bd9d40a7 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -567,7 +567,7 @@ struct klass
<< scope_tab << scope_tab << "try {\n"
<< scope_tab << scope_tab << scope_tab << "On_" << event_name << "(args);\n"
<< scope_tab << scope_tab << "} catch (Exception e) {\n"
- << scope_tab << scope_tab << scope_tab << "eina.Log.Error(e.ToString());\n"
+ << scope_tab << scope_tab << scope_tab << "eina.Log.Warning(e.ToString());\n"
<< scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n"
<< scope_tab << scope_tab << "}\n"
<< scope_tab << "}\n"
@@ -654,7 +654,7 @@ struct klass
<< scope_tab << scope_tab << "try {\n"
<< scope_tab << scope_tab << scope_tab << "On_" << wrapper_evt_name << "(args);\n"
<< scope_tab << scope_tab << "} catch (Exception e) {\n"
- << scope_tab << scope_tab << scope_tab << "eina.Log.Error(e.ToString());\n"
+ << scope_tab << scope_tab << scope_tab << "eina.Log.Warning(e.ToString());\n"
<< scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n"
<< scope_tab << scope_tab << "}\n"
<< scope_tab << "}\n"