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

ory / ladon / 484
89%

Build:
DEFAULT BRANCH: master
Ran 02 Jan 2018 01:21PM UTC
Jobs 1
Files 14
Run time 1s
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

pending completion
484

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

Jobs
ID Job ID Ran Files Coverage
1 484.1 (DOCKER_BIND_LOCALHOST=true) 02 Jan 2018 01:21PM UTC 0
87.86
Travis Job 484.1
Source Files on build 484
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #484
  • 9dff48b8 on github
  • Prev Build on master (#482)
  • Next Build on master (#503)
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