We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80457ea commit 587b130Copy full SHA for 587b130
state_test.cpp
@@ -158,7 +158,7 @@ cxx_divide(lutok::state& state)
158
if (divisor == 0)
159
throw std::runtime_error("Divisor is 0");
160
if (dividend < 0 || divisor < 0)
161
- throw std::string("Cannot divide negative numbers");
+ throw std::runtime_error("Cannot divide negative numbers");
162
state.push_integer(dividend / divisor);
163
state.push_integer(dividend % divisor);
164
return 2;
0 commit comments