Commit b96758a1 authored by Kenton Varda's avatar Kenton Varda

Oops.

parent 2bcd81bf
......@@ -300,7 +300,7 @@ TEST(Debug, Catch) {
ADD_FAILURE() << "Expected exception.";
} catch (const std::exception& e) {
kj::StringPtr what = e.what();
std::string text = e.what();
std::string text;
KJ_IF_MAYBE(eol, what.findFirst('\n')) {
text.assign(what.cStr(), *eol);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment