summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-06-22 20:49:38 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 19:00:53 -0300
commitacad4b1ff5370e4bfb203d3da51251e95e1b2694 (patch)
treecc4fbd37bb6da74f7e24024f79eaf4e9290022b8
parentc966c3976ee6a3ae0ab5952663e1bcc6c1ba1d94 (diff)
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 ea0d7a7795..7c28c6dacf 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
567 << scope_tab << scope_tab << "try {\n" 567 << scope_tab << scope_tab << "try {\n"
568 << scope_tab << scope_tab << scope_tab << "On_" << event_name << "(args);\n" 568 << scope_tab << scope_tab << scope_tab << "On_" << event_name << "(args);\n"
569 << scope_tab << scope_tab << "} catch (Exception e) {\n" 569 << scope_tab << scope_tab << "} catch (Exception e) {\n"
570 << scope_tab << scope_tab << scope_tab << "eina.Log.Error(e.ToString());\n" 570 << scope_tab << scope_tab << scope_tab << "eina.Log.Warning(e.ToString());\n"
571 << scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n" 571 << scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n"
572 << scope_tab << scope_tab << "}\n" 572 << scope_tab << scope_tab << "}\n"
573 << scope_tab << "}\n" 573 << scope_tab << "}\n"
@@ -654,7 +654,7 @@ struct klass
654 << scope_tab << scope_tab << "try {\n" 654 << scope_tab << scope_tab << "try {\n"
655 << scope_tab << scope_tab << scope_tab << "On_" << wrapper_evt_name << "(args);\n" 655 << scope_tab << scope_tab << scope_tab << "On_" << wrapper_evt_name << "(args);\n"
656 << scope_tab << scope_tab << "} catch (Exception e) {\n" 656 << scope_tab << scope_tab << "} catch (Exception e) {\n"
657 << scope_tab << scope_tab << scope_tab << "eina.Log.Error(e.ToString());\n" 657 << scope_tab << scope_tab << scope_tab << "eina.Log.Warning(e.ToString());\n"
658 << scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n" 658 << scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n"
659 << scope_tab << scope_tab << "}\n" 659 << scope_tab << scope_tab << "}\n"
660 << scope_tab << "}\n" 660 << scope_tab << "}\n"