未验证 提交 17d1dc7e 编写于 作者: R Robert Ancell 提交者: GitHub

Show error details in method channel response error messages (#18571)

上级 363050d4
......@@ -93,9 +93,8 @@ G_MODULE_EXPORT FlValue* fl_method_response_get_result(FlMethodResponse* self,
FlValue* details =
fl_method_error_response_get_details(FL_METHOD_ERROR_RESPONSE(self));
g_autofree gchar* details_text = nullptr;
if (details != nullptr) {
// TODO(robert-ancell): Update this when we have fl_value_to_string()
}
if (details != nullptr)
details_text = fl_value_to_string(details);
g_autoptr(GString) error_message = g_string_new("");
g_string_append_printf(error_message, "Remote code returned error %s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册