mirror of
https://github.com/digarok/Appy.git
synced 2026-10-22 00:02:19 +00:00
show colorized output when assembly fails
This commit is contained in:
1 parent
95e5685072
commit
f5ca105aea
2 files changed
+4
-3
No files matched your search
+3
-3
@@ -5,6 +5,7 @@ import (
|
||||
"log"
|
||||
"os/exec"
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
@@ -21,11 +22,10 @@ func Assemble() {
|
||||
for _, filename := range filesToAssemble {
|
||||
fmt.Printf("Assembling %v\n", filename)
|
||||
|
||||
cmd := exec.Command(Merlin32Path, "-V", filename)
|
||||
|
||||
err := cmd.Run()
|
||||
out, err := exec.Command(Merlin32Path, "-V", filename).Output()
|
||||
|
||||
if err != nil {
|
||||
color.Cyan(string(out))
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user