From 9431cbee4ec1cb98a6095206936ea92e0736f06d Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Tue, 26 Dec 2023 14:06:42 -0500 Subject: [PATCH] Adding explicit error types for easier debugging (#3496) --- .github/ISSUE_TEMPLATE/1-bug.md | 2 +- .../requester-utils/src/GitbeakerError.ts | 31 + packages/requester-utils/src/index.ts | 1 + packages/rest/README.md | 23 +- packages/rest/src/Requester.ts | 19 +- packages/rest/test/unit/Requester.ts | 10 +- yarn.lock | 2092 ++++++++--------- 7 files changed, 1006 insertions(+), 1172 deletions(-) create mode 100644 packages/requester-utils/src/GitbeakerError.ts diff --git a/.github/ISSUE_TEMPLATE/1-bug.md b/.github/ISSUE_TEMPLATE/1-bug.md index c089e3afa..d857e3364 100644 --- a/.github/ISSUE_TEMPLATE/1-bug.md +++ b/.github/ISSUE_TEMPLATE/1-bug.md @@ -8,7 +8,7 @@ about: Something is not working as it should - Node.js version: - Gitbeaker version: -- Gitbeaker release (cli, node, browser, core, requester-utils): +- Gitbeaker release (cli, rest, core, requester-utils): - OS & version: