Update threadpool callback error messages to fix dotnet/runtime#38803 (#20171)
commitcb630c292cfa17213c8e93af3b1ab1721021725f
authormonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 29 Jul 2020 08:46:04 +0000 (29 04:46 -0400)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 08:46:04 +0000 (29 10:46 +0200)
tree00042be1174251fee56bdaa102423c723f488fa3
parentcf9935e1367897ccd03c382d4dd75714d0002f3a
Update threadpool callback error messages to fix dotnet/runtime#38803 (#20171)

EDIT: Simple test case to trigger an error:
```csharp
        ThreadPool.QueueUserWorkItem((_) => {
            throw new Exception("test");
        });
        var t = typeof(System.Threading.ThreadPool);
        var m = t.GetMethod("PumpThreadPool", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static);
        m.Invoke(null, null);
```

Co-authored-by: kg <kg@users.noreply.github.com>
mono/mini/mini-wasm.c