Fix: Update static error message

This commit is contained in:
charlydelta 2019-08-02 22:44:27 +02:00
parent 5891b6b5df
commit 2882e77ad5

View File

@ -471,7 +471,8 @@ namespace cxxopts
void throw_or_mimic(const std::string& text)
{
static_assert(std::is_base_of<std::exception, T>::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