go-errors / errors

errors with stacktraces for go
https://godoc.org/github.com/go-errors/errors
MIT License
935 stars 93 forks source link

Output example #10

Open techtonik opened 8 years ago

techtonik commented 8 years ago

Would be nice to get an example of output somewhere in the docs:

*errors.Error oh dear
E:/go/src/github.com/go-errors/errors/34234/crashy/crashy.go:8 (0x44bd0e)
        Crash: return errors.New(Crashed)
E:/go/src/github.com/go-errors/errors/34234/main.go:10 (0x40105e)
        main: err := crashy.Crash()
C:/Program Files/Go/src/runtime/proc.go:188 (0x4284f4)
        main: main_main()
C:/Program Files/Go/src/runtime/asm_386.s:1585 (0x44af41)
        goexit: BYTE    $0x90   // NOP