This commit is contained in:
Michael Davidsaver
2023-02-12 09:56:07 -08:00
parent e93909cf7e
commit 1aad37c230
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -698,9 +698,9 @@ double parseTo<double>(const std::string& s) {
try {
ret = std::stod(s, &idx);
}catch(std::invalid_argument& e) {
throw NoConvert(SB()<<"Invalid input : \""<<escape(s)<<"\"");
throw NoConvert(SB()<<"Invalid input : \""<<escape(s)<<"\" : "<<e.what());
}catch(std::out_of_range& e) {
throw NoConvert(SB()<<"Out of range : \""<<escape(s)<<"\"");
throw NoConvert(SB()<<"Out of range : \""<<escape(s)<<"\" : "<<e.what());
}
for(; idx<L && isspace(s[idx]); idx++) {}
if(idx<L)