mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
this fixes error when revel package creates tar without indicating that build had errors due to unhandled error
This commit is contained in:
@@ -69,7 +69,9 @@ func buildApp(c *model.CommandConfig) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
buildSafetyCheck(destPath)
|
if err = buildSafetyCheck(destPath); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Ensure the application can be built, this generates the main file
|
// Ensure the application can be built, this generates the main file
|
||||||
app, err := harness.Build(c, revel_paths)
|
app, err := harness.Build(c, revel_paths)
|
||||||
|
|||||||
@@ -86,7 +86,9 @@ func packageApp(c *model.CommandConfig) (err error) {
|
|||||||
}
|
}
|
||||||
c.Build.TargetPath = tmpDir
|
c.Build.TargetPath = tmpDir
|
||||||
c.Build.CopySource = c.Package.CopySource
|
c.Build.CopySource = c.Package.CopySource
|
||||||
buildApp(c)
|
if err = buildApp(c); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Create the zip file.
|
// Create the zip file.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user