From 7d1d65c45971f21fa9245ab745441fecf60722e4 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 27 Aug 2018 17:32:25 +0200
Subject: [PATCH] Fix c++ exception throw

---
 bob/io/image/cpp/gif.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/io/image/cpp/gif.cpp b/bob/io/image/cpp/gif.cpp
index e6cb0b4..50eb484 100644
--- a/bob/io/image/cpp/gif.cpp
+++ b/bob/io/image/cpp/gif.cpp
@@ -481,7 +481,7 @@ static void im_load_color(boost::shared_ptr<GifFileType> in_file, bob::io::base:
   } while (!terminated);
 
   if (!image_found){
-    std::runtime_error("GIF: image does not contain an image section");
+    throw std::runtime_error("GIF: image does not contain an image section");
   }
 
   // Lets dump it - set the global variables required and do it:
-- 
GitLab