From d9ad05b683a48d2d1a8213d02b9e265037ce6bc2 Mon Sep 17 00:00:00 2001 From: Kenneth Moreland Date: Wed, 29 Dec 2021 12:04:52 -0700 Subject: [PATCH] Add warning when an invalid ColorTable preset was requested --- vtkm/cont/ColorTablePresets.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vtkm/cont/ColorTablePresets.cxx b/vtkm/cont/ColorTablePresets.cxx index 17096502f..db650d800 100644 --- a/vtkm/cont/ColorTablePresets.cxx +++ b/vtkm/cont/ColorTablePresets.cxx @@ -8,6 +8,7 @@ // PURPOSE. See the above copyright notice for more information. //============================================================================ #include +#include #include @@ -1442,6 +1443,8 @@ VTKM_CONT_EXPORT bool LoadColorTablePreset(std::string name, vtkm::cont::ColorTa return true; } } + VTKM_LOG_S(vtkm::cont::LogLevel::Warn, + "Attempted to load color table preset '" << name << "' but no such preset exists."); return false; } }