An open API service indexing awesome lists of open source software.

https://github.com/sebastianwebber/berr

Better errors replaces the standard error message with a more detailed one.
https://github.com/sebastianwebber/berr

error-handling golang golang-error-handling golang-errors golang-library golang-package

Last synced: 3 months ago
JSON representation

Better errors replaces the standard error message with a more detailed one.

Awesome Lists containing this project

README

        

# `berr`: Better Errors

Better errors replaces the standard error message with a more detailed one.
This makes it easier to debug your code and understand what is going on.

Yes, message output is inspired by the rust's [`anyhow` crate](https://docs.rs/anyhow/latest/anyhow/). :D

## Installation

```shell
go get github.com/sebastianwebber/berr@latest
```

## Example

![example](./examples.gif)
> check [`./examples/main.go`](./examples/main.go) for details.