Fix the error message output of mysql tutorial.

This commit is contained in:
XieHan
2020-08-26 01:06:08 +08:00
parent 7eadd33c5e
commit 35890cb243

View File

@@ -81,7 +81,9 @@ void mysql_callback(WFMySQLTask *task)
if (task->get_state() != WFT_STATE_SUCCESS)
{
fprintf(stderr, "task error = %d\n", task->get_error());
fprintf(stderr, "error msg: %s\n",
WFGlobal::get_error_string(task->get_state(),
task->get_error()));
return;
}