mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Merge pull request #178 from helgix/package-bugfix
eliminates package bug on silent build problems
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user