eina_mono: re-throw exception to preserve stack details
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 24 Oct 2019 21:21:39 +0000 (18:21 -0300)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 11 Nov 2019 02:20:38 +0000 (11:20 +0900)
Summary:
fix CA2200
ref T8426

Test Plan:
meson setup -Dbindings=mono,cxx -Dmono-beta=true
ninja test

Reviewers: lauromoura, felipealmeida, brunobelo

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8426

Differential Revision: https://phab.enlightenment.org/D10462

src/bindings/mono/eina_mono/eina_common.cs

index 7f59d73..44d6c6c 100644 (file)
@@ -205,10 +205,10 @@ public static class StringConversion
             Marshal.WriteByte(native + strbuf.Length, 0); // write the terminating null
             return native;
         }
-        catch(Exception e)
+        catch(Exception)
         {
             MemoryNative.Free(native);
-            throw e;
+            throw;
         }
     }