From 3ea2f56085d112c40100a7f86ee0358729c5c93e Mon Sep 17 00:00:00 2001 From: Jonathan Camara Date: Wed, 27 Apr 2022 16:07:48 -0500 Subject: [PATCH] fix: ensure using defined variable --- dist/index.js | 4 ++-- lib/setup-terraform.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8c5167c..5058629 100644 --- a/dist/index.js +++ b/dist/index.js @@ -45,8 +45,8 @@ async function downloadCLI (url) { core.info(file); } catch (error) { - core.error(err); - throw err; + core.error(error); + throw error; } core.debug('Extracting Terraform CLI zip file'); diff --git a/lib/setup-terraform.js b/lib/setup-terraform.js index 5bfd281..aecf9ec 100644 --- a/lib/setup-terraform.js +++ b/lib/setup-terraform.js @@ -39,8 +39,8 @@ async function downloadCLI (url) { core.info(file); } catch (error) { - core.error(err); - throw err; + core.error(error); + throw error; } core.debug('Extracting Terraform CLI zip file');