[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 { Future<void> run() async {
try { try {
_completer.complete(await _closure()); _completer.complete(await _closure());
} catch (e) { } catch (e, st) {
_completer.completeError(e); _completer.completeError(e, st);
} finally { } finally {
onComplete?.call(); onComplete?.call();
} }