{"id":21056320,"url":"https://github.com/gabivlj/error-tree","last_synced_at":"2025-07-03T05:01:48.661Z","repository":{"id":69166562,"uuid":"604403784","full_name":"gabivlj/error-tree","owner":"gabivlj","description":"Format your errors as error trees with stack traces. (Proof of concept dirty code)","archived":false,"fork":false,"pushed_at":"2023-02-21T01:55:40.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T03:37:01.075Z","etag":null,"topics":["errors","go","golang","library","stack","stacktrace","stacktraces","trace","xerrors"],"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/gabivlj.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-21T01:41:06.000Z","updated_at":"2023-02-21T01:49:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3814e97-6fff-4b67-9b09-145fb75db8cf","html_url":"https://github.com/gabivlj/error-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabivlj/error-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabivlj%2Ferror-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabivlj%2Ferror-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabivlj%2Ferror-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabivlj%2Ferror-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabivlj","download_url":"https://codeload.github.com/gabivlj/error-tree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabivlj%2Ferror-tree/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264641,"owners_count":23439246,"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":["errors","go","golang","library","stack","stacktrace","stacktraces","trace","xerrors"],"created_at":"2024-11-19T16:49:55.711Z","updated_at":"2025-07-03T05:01:48.594Z","avatar_url":"https://github.com/gabivlj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rrors\n\nA proof-of-concept Golang error library that renders your error stack trace as a tree. Similar to xerrors but with support to `errors.Join`.\n\nSee the tests folder to see sample renderings.\n\n# Is this ready?\n\nThis is a proof of concept and hacky code all around, I'm just testing the idea :)\n\n# Usage\n\nThis is at your own risk, code is not perfect, but the idea is wrapping errors and preserving the stacktrace like `xerrors` did, but also\nadaption to errors.Join from go 1.20\n\n```golang\nerr := rrors.Errorf(\"some error: %w\", errors.Join(...))\n// prints tree with stacktrace\nfmt.Println(err)\n```\n\n## Untested things\n\n- rrors.Errorf(\"%w %w\") ?\n- errors.Is(rrors.Errorf(...)) ?\n- errors.As(...)\n\n## Plans\n\nAdd ways to query an error tree like doing:\n\n- `rerrs.CountErrors(err, os.ErrNotFound)` // counts the number of ErrNotFound in the error tree\n- `rerrs.AsMultiple[MyErrorType](err)` // returns errors of this type in the error tree\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabivlj%2Ferror-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabivlj%2Ferror-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabivlj%2Ferror-tree/lists"}