From 08f72afa20fb769ca35b5a55db45c9c95de065e7 Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath@c-s.fr> Date: Wed, 7 Oct 2015 12:56:32 +0200 Subject: [PATCH] ENH: extra quote for better error reporting --- Modules/Adapters/BoostAdapters/include/otbStringUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Adapters/BoostAdapters/include/otbStringUtils.h b/Modules/Adapters/BoostAdapters/include/otbStringUtils.h index 9c675f695f..341b231eb2 100644 --- a/Modules/Adapters/BoostAdapters/include/otbStringUtils.h +++ b/Modules/Adapters/BoostAdapters/include/otbStringUtils.h @@ -40,7 +40,7 @@ Res LexicalCast(In const& in, std::string const& kind) { } catch (boost::bad_lexical_cast &) { std::ostringstream oss; - oss << "Cannot decode " << in << " as this is not a valid value for " << kind; + oss << "Cannot decode '" << in << "' as this is not a valid value for '" << kind << "'"; throw std::runtime_error(oss.str()); } } -- GitLab