From 81b43dea40d39082a80d97c3b8e7c03871a66b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 9 Jan 2023 17:29:52 +0100 Subject: [PATCH] fix ci --- .circleci/config.yml | 4 ++-- handler.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ac3678..edc3f56 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ orbs: executors: golang: docker: - - image: circleci/golang:1.13 + - image: cimg/go:1.18.8 resource_class: medium jobs: test: @@ -31,7 +31,7 @@ jobs: - go/mod-download - go/install-golangci-lint: gobin: $HOME/.local/bin - version: 1.23.8 + version: 1.50.1 - run: command: $HOME/.local/bin/golangci-lint run -v --concurrency 2 workflows: diff --git a/handler.go b/handler.go index da1e689..f1a5635 100644 --- a/handler.go +++ b/handler.go @@ -281,7 +281,7 @@ func (s *handler) createError(err error) *respError { out := &respError{ Code: code, - Message: err.(error).Error(), + Message: err.Error(), } if m, ok := err.(marshalable); ok { @@ -434,7 +434,7 @@ func (s *handler) handle(ctx context.Context, req request, w func(func(io.Writer stats.Record(ctx, metrics.RPCResponseError.M(1)) resp.Error = &respError{ Code: 1, - Message: err.(error).Error(), + Message: err.Error(), } } else { resp.Result = res