• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ory / ladon / 484 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 02 Jan 2018 01:21PM UTC
Files 14
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jan 2018 01:19PM UTC coverage: 87.861%. Remained the same
DOCKER_BIND_LOCALHOST=true

push

travis-ci

arekkas
errors: Removes stack trace for global errors (#96)

When including `errors.WithStack` in ladon's `Err*` exports, any time
this error is returned, its stacktrace will contain the _definition_.

For example, following snippet

    package main

    import (
        "fmt"
        "github.com/ory/ladon"
        "github.com/pkg/errors"
    )

    func main() {
        fmt.Printf("Error: %+v\n", errors.WithStack(ladon.ErrRequestDenied))
    }

will output

    Error: Request was denied by default
    github.com/chef/xx/vendor/github.com/ory/ladon.init
            /Users/stephan/go/src/github.com/chef/xx/vendor/github.com/ory/ladon/errors.go:25
    main.init
            <autogenerated>:1
    runtime.main
            /usr/local/Cellar/go/1.9.2/libexec/src/runtime/proc.go:183
    runtime.goexit
            /usr/local/Cellar/go/1.9.2/libexec/src/runtime/asm_amd64.s:2337
    main.main
            /Users/stephan/go/src/github.com/chef/xx/main.go:11
    runtime.main
            /usr/local/Cellar/go/1.9.2/libexec/src/runtime/proc.go:195

...of which only the second half is helpful.

Without the call in errors.go, the output will only contain the useful
bit:

    Error: Request was denied by default
    main.main
            /Users/stephan/go/src/github.com/chef/xx/main.go:11
    runtime.main
            /usr/local/Cellar/go/1.9.2/libexec/src/runtime/proc.go:195
    runtime.goexit
            /usr/local/Cellar/go/1.9.2/libexec/src/runtime/asm_amd64.s:2337

Signed-off-by: Stephan Renatus <srenatus@chef.io>

456 of 519 relevant lines covered (87.86%)

80.28 hits per line

Source Files on job 484.1 (DOCKER_BIND_LOCALHOST=true)
  • Tree
  • List 0
  • Changed 6
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 484
  • Travis Job 484.1
  • 9dff48b8 on github
  • Prev Job for DOCKER_BIND_LOCALHOST=true on master (#482.1)
  • Next Job for DOCKER_BIND_LOCALHOST=true on master (#503.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc