diff --git a/test/jogasaki/error/error_info_factory_test.cpp b/test/jogasaki/error/error_info_factory_test.cpp index 43a0d17ac..709ae29bf 100644 --- a/test/jogasaki/error/error_info_factory_test.cpp +++ b/test/jogasaki/error/error_info_factory_test.cpp @@ -55,13 +55,13 @@ TEST_F(error_info_factory_test, basic) { TEST_F(error_info_factory_test, stacktrace) { request_context rctx{}; - jogasaki::error::set_error_impl(rctx, error_code::sql_service_exception, "msg", __FILE__, line_number_string, status::ok, true); + jogasaki::error::set_error_impl(rctx, error_code::sql_service_exception, "", __FILE__, line_number_string, status::ok, true); auto errinfo = rctx.error_info(); ASSERT_TRUE(errinfo); LOG(INFO) << *errinfo; // manually check if stacktrace is readable with correct line breaks - auto j = nlohmann::json::parse(errinfo->supplemental_text()); + auto j = nlohmann::json::parse(errinfo->message()); std::cerr << j["stacktrace"].get(); } }