{"id":24430671,"url":"https://github.com/dc0d/wrapperr","last_synced_at":"2025-07-18T16:32:39.388Z","repository":{"id":47429745,"uuid":"300716865","full_name":"dc0d/wrapperr","owner":"dc0d","description":"Where did that error happen down the call chain? Right at the bottom!","archived":false,"fork":false,"pushed_at":"2021-08-31T21:33:00.000Z","size":454,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T12:53:44.802Z","etag":null,"topics":["call-stack","error-log","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dc0d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-10-02T19:28:27.000Z","updated_at":"2021-08-31T21:30:15.000Z","dependencies_parsed_at":"2022-08-23T13:30:37.455Z","dependency_job_id":null,"html_url":"https://github.com/dc0d/wrapperr","commit_stats":null,"previous_names":["dc0d/here"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/dc0d/wrapperr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc0d%2Fwrapperr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc0d%2Fwrapperr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc0d%2Fwrapperr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc0d%2Fwrapperr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dc0d","download_url":"https://codeload.github.com/dc0d/wrapperr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc0d%2Fwrapperr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265793525,"owners_count":23829176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["call-stack","error-log","golang"],"created_at":"2025-01-20T14:57:29.194Z","updated_at":"2025-07-18T16:32:39.342Z","avatar_url":"https://github.com/dc0d.png","language":"Go","readme":"[![PkgGoDev](https://pkg.go.dev/badge/dc0d/wrapperr)](https://pkg.go.dev/github.com/dc0d/wrapperr) [![Go Report Card](https://goreportcard.com/badge/github.com/dc0d/wrapperr)](https://goreportcard.com/report/github.com/dc0d/wrapperr) [![Maintainability](https://api.codeclimate.com/v1/badges/c0fdd128cafcb6ce0c52/maintainability)](https://codeclimate.com/github/dc0d/wrapperr/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/c0fdd128cafcb6ce0c52/test_coverage)](https://codeclimate.com/github/dc0d/wrapperr/test_coverage)\n\n# wrapperr\n\n_Where_ did that error happen down the call chain?\n\n\u003e Right at the bottom!\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./images/github_com_dc0d_wrapperr.png\" width=\"80%\" alt=\"https://github.com/dc0d/wrapperr\"\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nAll you need to do is, instead of:\n\n```go\nreturn nil, err\n```\n\nDo:\n\n```go\nreturn nil, wrapperr.WithStack(err)\n```\n\nAlso, it is possible to annotate the stack in the middle:\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./images/github_com_dc0d_wrapperr_annotate.png\" width=\"80%\" alt=\"https://github.com/dc0d/wrapperr\"\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nAnd to get the original error, just used the standard `errors.Unwrap(error)` function from built-in `errors` package.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdc0d%2Fwrapperr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdc0d%2Fwrapperr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdc0d%2Fwrapperr/lists"}