[flutter_conductor] log to stderr but do not crash conductor if branch name validation fails (#99181)

This commit is contained in:
Christopher Fujino
2022-02-25 15:26:16 -08:00
committed by GitHub
parent c2269611f4
commit fac90f44ba
2 changed files with 210 additions and 2 deletions

View File

@@ -377,9 +377,12 @@ class StartContext extends Context {
candidateBranch,
exact: false,
));
// [force] means we know this would fail but need to publish anyway
if (!force) {
try {
lastVersion.ensureValid(candidateBranch, incrementLetter);
} on ConductorException catch (e) {
// Let the user know, but resume execution
stdio.printError(e.message);
}
Version nextVersion = calculateNextVersion(lastVersion);