Throw an exception when elm_image_memfile_set is failed
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 13 Sep 2016 08:11:19 +0000 (17:11 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 13 Sep 2016 08:11:19 +0000 (17:11 +0900)
Change-Id: I0ef8c85565c417d6632c56254bd1424ed655aa37

ElmSharp/ElmSharp/Image.cs

index 84c4227..141623c 100644 (file)
@@ -223,7 +223,7 @@ namespace ElmSharp
             bool ret = Interop.Elementary.elm_image_memfile_set(Handle, img, size, IntPtr.Zero, IntPtr.Zero);
             if (!ret)
             {
-                Console.WriteLine("Failed to set memory buffer to Image");
+                throw new InvalidOperationException("Failed to set memory buffer to Image");
             }
 
             LoadingCompleted?.Invoke(this, EventArgs.Empty);