From c885c86e1a02797f692492f8db9f58eb8e665106 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Tschumperl=C3=A9?= <David.Tschumperle@gmail.com>
Date: Sat, 22 Sep 2018 08:39:58 +0200
Subject: [PATCH] .

---
 CImg.h | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/CImg.h b/CImg.h
index 822e3a2..5b14c29 100644
--- a/CImg.h
+++ b/CImg.h
@@ -56296,7 +56296,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "min(): Empty instance or list of empty images.",
+                                    "min(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T min_value = *ptr_min;
       cimglist_for(*this,l) {
@@ -56317,7 +56318,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "min(): Empty instance or list of empty images.",
+                                    "min(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T min_value = *ptr_min;
       cimglist_for(*this,l) {
@@ -56340,7 +56342,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "max(): Empty instance or list of empty images.",
+                                    "max(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T max_value = *ptr_max;
       cimglist_for(*this,l) {
@@ -56361,7 +56364,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "max(): Empty instance or list of empty images.",
+                                    "max(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T max_value = *ptr_max;
       cimglist_for(*this,l) {
@@ -56386,7 +56390,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "min_max(): Empty instance or list of empty images.",
+                                    "min_max(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T min_value = *ptr_min, max_value = min_value;
       cimglist_for(*this,l) {
@@ -56416,7 +56421,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "min_max(): Empty instance or list of empty images.",
+                                    "min_max(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T min_value = *ptr_min, max_value = min_value;
       cimglist_for(*this,l) {
@@ -56446,7 +56452,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "max_min(): Empty instance or list of empty images.",
+                                    "max_min(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T min_value = *ptr_max, max_value = min_value;
       cimglist_for(*this,l) {
@@ -56473,7 +56480,8 @@ namespace cimg_library_suffixed {
       }
       if (is_all_empty)
         throw CImgInstanceException(_cimglist_instance
-                                    "max_min(): Empty instance or list of empty images.",
+                                    "max_min(): %s.",
+                                    _data?"List of empty images":"Empty instance",
                                     cimglist_instance);
       T min_value = *ptr_max, max_value = min_value;
       cimglist_for(*this,l) {
-- 
GitLab