Clean up error handling for meteor build tarball creation.

Write errors to `Console.stderr`, and exit 1 instead of going on to do
the mobile builds (if any) and exiting 0.
This commit is contained in:
Emily Stark
2014-10-09 22:31:15 -07:00
parent 99228d7c7b
commit cc3fbff888

View File

@@ -737,8 +737,10 @@ var buildCommand = function (options) {
var outputTar = path.join(outputPath, appName + '.tar.gz');
files.createTarball(path.join(buildDir, 'bundle'), outputTar);
} catch (err) {
console.log(JSON.stringify(err));
Console.stderr.write("Couldn't create tarball\n");
Console.stderr.write("Errors during tarball creation:\n");
Console.stderr.write(err.message);
files.rm_recursive(buildDir);
return 1;
}
}