1
0
mirror of https://github.com/beego/bee.git synced 2025-06-12 04:50:40 +00:00

add notify on fails build

This commit is contained in:
Sergey Lanzman
2017-03-10 19:43:57 +02:00
parent 6dce4df2cb
commit dacee6ba16
3 changed files with 82 additions and 2 deletions

View File

@ -178,6 +178,7 @@ func AutoBuild(files []string, isgenerate bool) {
icmd.Env = append(os.Environ(), "GOGC=off")
err = icmd.Run()
if err != nil {
utils.Notify("", "Failed to generate the docs.")
beeLogger.Log.Errorf("Failed to generate the docs.")
return
}
@ -202,6 +203,7 @@ func AutoBuild(files []string, isgenerate bool) {
bcmd.Stderr = &stderr
err = bcmd.Run()
if err != nil {
utils.Notify(stderr.String(), "Build Failed")
beeLogger.Log.Errorf("Failed to build the application: %s", stderr.String())
return
}