Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4ee57c0

Browse files
devoncarewcommit-bot@chromium.org
authored andcommitted
[dartdev] show the stack trace when we fail with an unexpected exception
Change-Id: Idf0d39b3887393f8cb8b763fa66e52b2721ce3db Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148901 Reviewed-by: Jaime Wren <[email protected]> Commit-Queue: Devon Carew <[email protected]>
1 parent 9bcdbfa commit 4ee57c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/dartdev/bin/dartdev.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ main(List<String> args) async {
1313
try {
1414
dynamic result = await runner.run(args);
1515
exit(result is int ? result : 0);
16-
} catch (e) {
16+
} catch (e, st) {
1717
if (e is UsageException) {
1818
stderr.writeln('$e');
1919
exit(64);
2020
} else {
2121
stderr.writeln('$e');
22+
stderr.writeln('$st');
2223
exit(1);
2324
}
2425
}

0 commit comments

Comments
 (0)