diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-02-22 10:51:49 +0100 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2023-02-22 10:56:55 +0100 |
commit | 8991ecf4448f7b7f720401777fa5eb6bac472751 (patch) | |
tree | 30ee23e2e940ccf38f37a91c14bb91fb9834c6f7 /meta | |
parent | 17887ce0b1a1a8756a61802f9136f2fc68bba180 (diff) | |
download | syncthing-8991ecf4448f7b7f720401777fa5eb6bac472751.tar.gz syncthing-8991ecf4448f7b7f720401777fa5eb6bac472751.zip |
build: Add more GitHub Actionsghabuilds
Diffstat (limited to 'meta')
-rw-r--r-- | meta/gofmt_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/gofmt_test.go b/meta/gofmt_test.go index 55cd8714a..7dc605035 100644 --- a/meta/gofmt_test.go +++ b/meta/gofmt_test.go @@ -7,6 +7,7 @@ package meta import ( + "fmt" "os" "os/exec" "path/filepath" @@ -32,7 +33,7 @@ func TestCheckGoFmt(t *testing.T) { cmd := exec.Command("gofmt", "-s", "-d", path) bs, err := cmd.CombinedOutput() if err != nil { - return err + return fmt.Errorf("%w: %s", err, string(bs)) } if len(bs) != 0 { t.Errorf("File %s is not formatted correctly:\n\n%s", path, string(bs)) |