diff --git a/.golangci.yaml b/.golangci.yaml index 62d0b9e..03be8a7 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,7 +2,8 @@ run: timeout: 5m output: - format: github-actions + formats: + - format: colored-line-number linters: disable-all: true diff --git a/Makefile b/Makefile index 701a2fc..ecb61c5 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ tidy: test: go test -v ./... -GOLANGCI_LINT_VERSION ?= v1.56.1 +GOLANGCI_LINT_VERSION ?= v1.60.1 lint: if ! command -v golangci-lint &> /dev/null; then \ echo "Could not find golangci-lint, installing version $(GOLANGCI_LINT_VERSION)."; \ diff --git a/run.go b/run.go index 6e6c5fd..5b716aa 100644 --- a/run.go +++ b/run.go @@ -371,7 +371,7 @@ func (r *Run) request(ctx context.Context, payload any) (err error) { r.callsLock.Unlock() } else if event.Run.Type == EventTypeRunFinish && event.Run.Error != "" { r.state = Error - r.err = fmt.Errorf(event.Run.Error) + r.err = fmt.Errorf("%s", event.Run.Error) } }