[test] log stack trace on errors, to improve diagnostics on #89243 (#94885)

This commit is contained in:
sigmundch 2021-12-09 11:54:16 -08:00 committed by GitHub
parent 23a52f547a
commit 896c63eaed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,8 +169,8 @@ class _TaskQueueItem<T> {
Future<void> run() async {
try {
_completer.complete(await _closure());
} catch (e) {
_completer.completeError(e);
} catch (e, st) {
_completer.completeError(e, st);
} finally {
onComplete?.call();
}