jsut in case

master v1.15
Bel LaPointe 2021-02-25 22:17:32 -06:00
parent 96cce88aed
commit 095ba7820d
1 changed files with 6 additions and 1 deletions

View File

@ -4,9 +4,11 @@ import (
"fmt"
"io/ioutil"
"local/notes-server/config"
"log"
"os"
"os/exec"
"path"
"strings"
"time"
)
@ -44,6 +46,9 @@ func (v *Versions) Commit() error {
func (v *Versions) cmd(cmd string, args ...string) error {
command := exec.Command(cmd, args...)
command.Dir = config.Root
_, err := command.CombinedOutput()
out, err := command.CombinedOutput()
if err != nil {
log.Println(cmd, args, ":", strings.TrimSpace(string(out)))
}
return err
}