use log instead of fmt
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
ci/woodpecker/push/test Pipeline is pending approval

This commit is contained in:
Simon Vieille 2024-07-30 22:33:53 +02:00
commit c479c756d7
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -1,7 +1,6 @@
package main
import (
"fmt"
"log"
"os"
"os/exec"
@ -30,7 +29,7 @@ func main() {
recv := i3.Subscribe(i3.WorkspaceEventType)
if len(os.Args) != 2 {
fmt.Errorf("Configuration required!")
log.Printf("[ERROR] Configuration required!")
os.Exit(1)
}
@ -39,12 +38,14 @@ func main() {
if err != nil {
log.Printf("[error] %s", err.Error())
os.Exit(1)
}
err = yaml.Unmarshal(data, &config)
if err != nil {
log.Printf("[error] %s", err.Error())
os.Exit(1)
}
for recv.Next() {