diff --git a/utils/compiler/create_snapshot_entry.dart b/utils/compiler/create_snapshot_entry.dart index 534cbdb7e5b..25dfde4cc51 100644 --- a/utils/compiler/create_snapshot_entry.dart +++ b/utils/compiler/create_snapshot_entry.dart @@ -11,17 +11,15 @@ import 'dart:async'; Future 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 = [ + 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(); });