From 1446aba0e4e4ba5ee6ba322f3cd5da4c0a3aea21 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Sun, 3 Sep 2023 02:24:38 +0000 Subject: [PATCH] http-client: typescript 4 --- packages/exec/src/toolrunner.ts | 2 +- packages/http-client/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/exec/src/toolrunner.ts b/packages/exec/src/toolrunner.ts index 18f884d3b7..55b53551e0 100644 --- a/packages/exec/src/toolrunner.ts +++ b/packages/exec/src/toolrunner.ts @@ -99,7 +99,7 @@ export class ToolRunner extends events.EventEmitter { } return s - } catch (err) { + } catch (err: any) { // streaming lines to console is best effort. Don't fail a build. this._debug(`error processing line. Failed with error ${err}`) diff --git a/packages/http-client/src/index.ts b/packages/http-client/src/index.ts index a63e61b7fe..2e4988417f 100644 --- a/packages/http-client/src/index.ts +++ b/packages/http-client/src/index.ts @@ -754,7 +754,7 @@ export class HttpClient { } response.headers = res.message.headers - } catch (err) { + } catch (err: any) { // Invalid resource (contents not json); leaving result obj null }