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 }