Skip to content

Commit 707c4c3

Browse files
authored
Fix missing throw (#2476)
1 parent cd7efef commit 707c4c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/inc/drogon/utils/Utilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ T fromString(const std::string &p) noexcept(false)
676676
// throw if the whole string could not be parsed
677677
// ("1a" should not return 1)
678678
if (!ss.eof())
679-
std::runtime_error("Bad type conversion");
679+
throw std::runtime_error("Bad type conversion");
680680
}
681681
return value;
682682
}

0 commit comments

Comments
 (0)