{"repo":"rotisserie/eris","free":true,"listed":false,"github":"https://github.com/rotisserie/eris","clone":"git clone https://github.com/rotisserie/eris.git","description":"Error handling library with readable stack traces and flexible formatting support 🎆","language":"Go","stars":1795,"topics":["errors","error-handling","error-logging","go","golang","sentry-integration","eris","error-traces"],"license":"MIT","category":"dev-tools","readme_excerpt":"eris [![GoDoc][doc-img]][doc] [![Build][ci-img]][ci] [![GoReport][report-img]][report] [![Coverage Status][cov-img]][cov] Package eris is an error handling library with readable stack traces and flexible formatting support. go get github.com/rotisserie/eris - Why you should switch to eris - Using eris Creating errors Wrapping errors Formatting and logging errors Interpreting eris stack traces Inverting the stack trace and error output Inspecting errors Formatting with custom separators Writing a custom output format Sending error traces to Sentry - Comparison to other packages (e.g. pkg/errors) Error formatting and stack traces - Migrating to eris - Contributing Why you should switch to eris This package was inspired by a simple question: what if you could fix a bug without wasting time replicating the issue or digging through the code? With that in mind, this package is designed to give you more control over error handling via error wrapping, stack tracing, and output formatting. The example that generated the output below simulates a realistic error handling scenario and demonstrates how to wrap and log errors with minimal effort. This specific error occurred because a user tried to access a file that can't be located, and the output shows a clear path from the top of the call stack to the source. Many of the methods in this package will look familiar if you've used pkg/errors or xerrors, but eris employs some additional tricks during error wrapping and unwrapping that grea","default_branch":null,"files":null,"tree":[],"storefront":"/r/rotisserie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rotisserie/eris/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}