summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-06-19 21:59:04 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 18:25:44 -0300
commit1cab32dc8b2e2339cb7ddc063004dfafa7dd9ed3 (patch)
tree26fae5f27d7edd3f9c1054677d086b467426be53
parent2165f370b0d6c032e939a150c775cbd9b921acb3 (diff)
mono: Use Exception.ToString to get better reports
-rw-r--r--src/bin/eolian_mono/eolian/mono/function_definition.hh2
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/function_definition.hh b/src/bin/eolian_mono/eolian/mono/function_definition.hh
index 394efbfb8a..558ab343cf 100644
--- a/src/bin/eolian_mono/eolian/mono/function_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/function_definition.hh
@@ -70,7 +70,7 @@ struct native_function_definition_generator
70 << scope_tab << scope_tab << scope_tab << scope_tab << (return_type != "void" ? "_ret_var = " : "") << "((" << string << "Inherit)wrapper)." << string 70 << scope_tab << scope_tab << scope_tab << scope_tab << (return_type != "void" ? "_ret_var = " : "") << "((" << string << "Inherit)wrapper)." << string
71 << "(" << (native_argument_invocation % ", ") << ");\n" 71 << "(" << (native_argument_invocation % ", ") << ");\n"
72 << scope_tab << scope_tab << scope_tab << "} catch (Exception e) {\n" 72 << scope_tab << scope_tab << scope_tab << "} catch (Exception e) {\n"
73 << scope_tab << scope_tab << scope_tab << scope_tab << "eina.Log.Warning($\"Callback error: {e.Message}\");\n" 73 << scope_tab << scope_tab << scope_tab << scope_tab << "eina.Log.Warning($\"Callback error: {e.ToString()}\");\n"
74 << scope_tab << scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n" 74 << scope_tab << scope_tab << scope_tab << scope_tab << "eina.Error.Set(eina.Error.EFL_ERROR);\n"
75 << scope_tab << scope_tab << scope_tab << "}\n" 75 << scope_tab << scope_tab << scope_tab << "}\n"
76 << eolian_mono::native_function_definition_epilogue(*klass) 76 << eolian_mono::native_function_definition_epilogue(*klass)
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 135e61c2bb..ea0d7a7795 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.Message);\n" 570 << scope_tab << scope_tab << scope_tab << "eina.Log.Error(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.Message);\n" 657 << scope_tab << scope_tab << scope_tab << "eina.Log.Error(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"