chore: make it more verbose
This commit is contained in:
@@ -68,12 +68,15 @@ func RunMeshbook(binPath, bookPath string, silent bool, targGroup string) (bool,
|
|||||||
outputData, err := cmd.CombinedOutput()
|
outputData, err := cmd.CombinedOutput()
|
||||||
cleanData := ansi.ReplaceAllString(string(outputData), "")
|
cleanData := ansi.ReplaceAllString(string(outputData), "")
|
||||||
|
|
||||||
|
log.Println("evaluating returned state")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("something went wrong when running the command: %v", err)
|
log.Printf("something went wrong when running the command: %v", err)
|
||||||
log.Printf("captured output: %s", cleanData)
|
log.Printf("captured output: %s", cleanData)
|
||||||
|
|
||||||
return false, cleanData
|
return false, cleanData
|
||||||
} else {
|
} else {
|
||||||
|
log.Printf("captured output: %s", cleanData)
|
||||||
|
|
||||||
return true, cleanData
|
return true, cleanData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user