2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-11 11:52:18 +00:00

throw leaf::exception(....) becomes leaf::throw_exception(....)

This commit is contained in:
Emil Dotchevski
2022-06-26 22:14:28 -07:00
parent 7ea5958ede
commit ff4f5da286
29 changed files with 278 additions and 286 deletions

View File

@@ -376,7 +376,7 @@ leaf::result<std::string> execute_command(std::string_view line) {
if (i2 == 0) {
// In some cases this command execution function might throw, not
// just return an error.
throw leaf::exception(std::runtime_error{"division by zero"});
leaf::throw_exception(std::runtime_error{"division by zero"});
}
response = std::to_string(i1 % i2);
} else {