From 896c63eaed155f41ce26193f8abfe54b35aabff6 Mon Sep 17 00:00:00 2001 From: sigmundch Date: Thu, 9 Dec 2021 11:54:16 -0800 Subject: [PATCH] [test] log stack trace on errors, to improve diagnostics on #89243 (#94885) --- dev/bots/analyze_sample_code.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/bots/analyze_sample_code.dart b/dev/bots/analyze_sample_code.dart index 3fcd63bbe4b..4e860819b98 100644 --- a/dev/bots/analyze_sample_code.dart +++ b/dev/bots/analyze_sample_code.dart @@ -169,8 +169,8 @@ class _TaskQueueItem { Future run() async { try { _completer.complete(await _closure()); - } catch (e) { - _completer.completeError(e); + } catch (e, st) { + _completer.completeError(e, st); } finally { onComplete?.call(); }