From 129ea81f6681dcc9a788f8405744446f8915b64f Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Mon, 10 Dec 2018 15:23:46 +0900 Subject: [PATCH] remove redundant words in error message --- toml/value.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toml/value.hpp b/toml/value.hpp index 4f6730b..010c4f4 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -669,7 +669,7 @@ typename detail::toml_default_type::type& value::cast() & if(T != this->type_) { throw type_error(this->format_error(concat_to_string( - "[error] toml::value bad_cast type-casting to ", T), + "[error] toml::value bad_cast to ", T), concat_to_string("the actual type is ", this->type_))); } return switch_cast::invoke(*this); @@ -680,7 +680,7 @@ typename detail::toml_default_type::type const& value::cast() const& if(T != this->type_) { throw type_error(this->format_error(concat_to_string( - "[error] toml::value bad_cast type-casting to ", T), + "[error] toml::value bad_cast to ", T), concat_to_string("the actual type is ", this->type_))); } return switch_cast::invoke(*this); @@ -691,7 +691,7 @@ typename detail::toml_default_type::type&& value::cast() && if(T != this->type_) { throw type_error(this->format_error(concat_to_string( - "[error] toml::value bad_cast type-casting to ", T), + "[error] toml::value bad_cast to ", T), concat_to_string("the actual type is ", this->type_))); } return switch_cast::invoke(std::move(*this));