Skip to content

Commit

Permalink
Update threadpool callback error messages to fix dotnet#38803
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Jul 28, 2020
1 parent 43670d5 commit a3187f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mono/mono/mini/mini-wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,13 @@ tp_cb (void)
mono_runtime_try_invoke (method, NULL, NULL, &exc, error);

if (!is_ok (error)) {
printf ("tp callback failed due to %s\n", mono_error_get_message (error));
printf ("ThreadPool Callback failed due to error: %s\n", mono_error_get_message (error));
mono_error_cleanup (error);
}

if (exc) {
char *type_name = mono_type_get_full_name (mono_object_class (exc));
printf ("tp callback threw a %s\n", type_name);
printf ("ThreadPool Callback threw an unhandled exception of type %s\n", type_name);
g_free (type_name);
}
}
Expand Down

0 comments on commit a3187f1

Please sign in to comment.