Fix the create_snapshot_entry error message.
Change-Id: I971c779409ef3bd2bfbe6d4a3c450f869242bd97 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362188 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
committed by
Commit Queue
parent
b8a81e10f6
commit
eed151a943
@@ -11,17 +11,15 @@ import 'dart:async';
|
||||
|
||||
Future<String> getVersion(var rootPath, bool noGitHash) {
|
||||
var printVersionScript = rootPath.resolve("tools/make_version.py");
|
||||
return Process.run(
|
||||
"python3",
|
||||
[
|
||||
printVersionScript.toFilePath(),
|
||||
"--quiet",
|
||||
if (noGitHash) '--no-git-hash'
|
||||
],
|
||||
runInShell: true)
|
||||
.then((result) {
|
||||
var args = <String>[
|
||||
printVersionScript.toFilePath(),
|
||||
"--quiet",
|
||||
if (noGitHash) '--no-git-hash'
|
||||
];
|
||||
return Process.run("python3", args, runInShell: true).then((result) {
|
||||
if (result.exitCode != 0) {
|
||||
throw "Could not generate version";
|
||||
throw "Could not generate version: ${args.join(' ')}"
|
||||
"\n${result.stdout}\n${result.stderr}";
|
||||
}
|
||||
return result.stdout.trim();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user