From 2882e77ad570496e5f60b394da7dd09a5156cc26 Mon Sep 17 00:00:00 2001 From: charlydelta Date: Fri, 2 Aug 2019 22:44:27 +0200 Subject: [PATCH] Fix: Update static error message --- include/cxxopts.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 2fe4fd7..bd03409 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -471,7 +471,8 @@ namespace cxxopts void throw_or_mimic(const std::string& text) { static_assert(std::is_base_of::value, - "mimic_throw only works on std::exception and deriving classes"); + "throw_or_mimic only works on std::exception and " + "deriving classes"); #ifndef CXXOPTS_NO_EXCEPTIONS // If CXXOPTS_NO_EXCEPTIONS is not defined, just throw