this fixes error when revel package creates tar without indicating that build had errors due to unhandled error

This commit is contained in:
Олег Вакарев
2019-09-26 13:14:33 +03:00
parent 149f9f992b
commit 83dfdb8ad2
2 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,9 @@ func buildApp(c *model.CommandConfig) (err error) {
return
}
buildSafetyCheck(destPath)
if err = buildSafetyCheck(destPath); err != nil {
return
}
// Ensure the application can be built, this generates the main file
app, err := harness.Build(c, revel_paths)

View File

@@ -86,7 +86,9 @@ func packageApp(c *model.CommandConfig) (err error) {
}
c.Build.TargetPath = tmpDir
c.Build.CopySource = c.Package.CopySource
buildApp(c)
if err = buildApp(c); err != nil {
return
}
// Create the zip file.