(e: any, msg: string)
| 92 | } |
| 93 | |
| 94 | export function errorHandle(e: any, msg: string): Error { |
| 95 | if (axios.isAxiosError(e) && e?.response?.data) { |
| 96 | return new Error(`${msg} ${e.response.data.message ?? e.response.data}`); |
| 97 | } |
| 98 | |
| 99 | return new Error(`${msg} ${e.message}`); |
| 100 | } |
| 101 | |
| 102 | export function buildProjectKey(org: string, projectName: string): string { |
| 103 | return encodeURIComponent(`${org}/${projectName.toLowerCase()}`); |
no outgoing calls
no test coverage detected