mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user