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 <sigurdm@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
Sigurd Meldgaard
2025-01-16 05:01:33 -08:00
committed by Commit Queue
parent f72b1ae9dd
commit afcfe1e133
+1 -1
View File
@@ -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('');