From afcfe1e133a08a0833ec695308845003c529e2e2 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Thu, 16 Jan 2025 05:01:33 -0800 Subject: [PATCH] dart create: Stop progress before exiting with error Otherwise the progress gizmo just keeps spinning, and dartdev never exits. Change-Id: I53aa04a214354f3a5b085fa9d7bb562131f8ab95 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403990 Commit-Queue: Sigurd Meldgaard Reviewed-by: Alexander Thomas --- pkg/dartdev/lib/src/commands/create.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dartdev/lib/src/commands/create.dart b/pkg/dartdev/lib/src/commands/create.dart index 65a692ad6954..d108c7b22470 100644 --- a/pkg/dartdev/lib/src/commands/create.dart +++ b/pkg/dartdev/lib/src/commands/create.dart @@ -130,9 +130,9 @@ class CreateCommand extends DartdevCommand { } }, ); - if (exitCode != 0) return exitCode; progress.finish(showTiming: true); log.stdout(buffer.toString().trimRight()); + if (exitCode != 0) return exitCode; } log.stdout('');