try to blow up before it's an actual problem

This commit is contained in:
Jeff Carr 2024-11-16 04:59:21 -06:00
parent cae26ecb18
commit e5fb8f6b1b
2 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,14 @@ func doRelease() bool {
return false return false
} }
if shell.Exists("go.mod") {
log.Info("go.mod exists ok")
} else {
pwd, _ := os.Getwd()
log.Info("go.mod disappeared. need to run go mod init and go mod tidy here:", pwd)
return false
}
curName := me.current.Status.GetCurrentBranchName() curName := me.current.Status.GetCurrentBranchName()
mName := me.current.Status.GetMasterBranchName() mName := me.current.Status.GetMasterBranchName()
if curName != mName { if curName != mName {

View File

@ -153,7 +153,7 @@ func createReleaseBox(box *gui.Node) {
log.Info("maybe ALL DONE?") log.Info("maybe ALL DONE?")
buttonEnable() buttonEnable()
worked = true worked = true
break os.Exit(0)
} }
log.Info("doRelease() failed") log.Info("doRelease() failed")
worked = false worked = false