catch errors at the root, remove unneccessary disabled rule
This commit is contained in:
1 parent
5a7b20df59
commit
31046e8606
4 files changed
+29
-68
No files matched your search
@@ -56,8 +56,6 @@ class ArtifactHttpClient implements Rpc {
|
||||
const headers = {
|
||||
'Content-Type': contentType
|
||||
}
|
||||
info(`Making request to ${url} with data: ${JSON.stringify(data)}`)
|
||||
|
||||
try {
|
||||
const response = await this.retryableRequest(async () =>
|
||||
this.httpClient.post(url, JSON.stringify(data), headers)
|
||||
@@ -65,7 +63,7 @@ class ArtifactHttpClient implements Rpc {
|
||||
const body = await response.readBody()
|
||||
return JSON.parse(body)
|
||||
} catch (error) {
|
||||
throw new Error(error.message)
|
||||
throw new Error(`Failed to ${method}: ${error.message}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user