Skip to content

Commit

Permalink
also output errors to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
loderunner committed Oct 16, 2023
1 parent 8f7c4c7 commit 04a8a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/Masterminds/semver v1.5.0
github.com/go-git/go-git/v5 v5.5.2
github.com/pkg/errors v0.9.1
github.com/rollbar/rollbar-go v1.4.5
github.com/segmentio/encoding v0.3.6
github.com/smacker/go-tree-sitter v0.0.0-20221031025734-03a9c97d8039
github.com/whilp/git-urls v1.0.0
Expand All @@ -31,7 +32,6 @@ require (
github.com/kr/pretty v0.3.0 // indirect
github.com/pjbgf/sha1cd v0.2.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rollbar/rollbar-go v1.4.5 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/skeema/knownhosts v1.1.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
Expand Down
1 change: 1 addition & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (server JSONRPCServer) commandHandler(_ context.Context, reply jsonrpc2.Rep

logErrorAndReply := func(ctx context.Context, result interface{}, err error) error {
if err != nil {
fmt.Printf("error calling %s: %s\n", req.Method(), err.Error())
rollbar.Log(rollbar.ERR, err)
}
return reply(ctx, result, err)
Expand Down

0 comments on commit 04a8a9b

Please sign in to comment.