提交 5a7a04f3 编写于 作者: T Tomas Vik

Merge branch '301-improve-api-error-reporting' into 'main'

fix(gitlab_service): include request URL when logging error

See merge request gitlab-org/gitlab-vscode-extension!167
......@@ -81,7 +81,11 @@ async function fetch(path: string, method = 'GET', data?: Record<string, unknown
};
} catch (e) {
handleError(
new UserFriendlyError('Failed to parse GitLab API response', e, `Response body: ${body}`),
new UserFriendlyError(
'Failed to parse GitLab API response',
e,
`Response body: ${body}\nRequest URL: ${apiRoot}${path}`,
),
);
return { error: e };
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册