Skip to content

Commit

Permalink
trace error when SetError
Browse files Browse the repository at this point in the history
  • Loading branch information
bughou committed Nov 17, 2021
1 parent 2a03918 commit 4859414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A golang http router with regexp and document generation support.
[![Build Status](https://github.com/lovego/goa/actions/workflows/go.yml/badge.svg)](https://github.com/lovego/goa/actions/workflows/go.yml)
[![Coverage Status](https://coveralls.io/repos/github/lovego/goa/badge.svg?branch=master&1)](https://coveralls.io/github/lovego/goa)
[![Go Report Card](https://goreportcard.com/badge/github.com/lovego/goa)](https://goreportcard.com/report/github.com/lovego/goa)
[![Documentation](https://pkg.go.dev/badge/github.com/lovego/goa)](https://pkg.go.dev/github.com/lovego/goa@v0.2.7)
[![Documentation](https://pkg.go.dev/badge/github.com/lovego/goa)](https://pkg.go.dev/github.com/lovego/goa@v0.2.8)


## Usage
Expand Down
4 changes: 3 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package goa
import (
"context"
"net/http"

"github.com/lovego/errs"
)

type ContextBeforeLookup struct {
Expand Down Expand Up @@ -66,7 +68,7 @@ func (c *ContextBeforeLookup) Set(key string, value interface{}) {
}

func (c *ContextBeforeLookup) SetError(err error) {
c.err = err
c.err = errs.Trace(err)
}

func (c *ContextBeforeLookup) GetError() error {
Expand Down

0 comments on commit 4859414

Please sign in to comment.