From ab82f5caf13f2637b5791eb4f811d5e942f427dc Mon Sep 17 00:00:00 2001 From: Daniel Fitzgerald Date: Tue, 22 Jun 2021 13:56:02 +0100 Subject: [PATCH] fix: windows path issue for reading config file --- snowflake.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snowflake.js b/snowflake.js index 295f198..b3a77d7 100644 --- a/snowflake.js +++ b/snowflake.js @@ -11,10 +11,10 @@ const sqlFileName = process.argv[2]; let file = null; let config = null; try { - let filePath = path.normalize('./config.yaml'); + let filePath = path.normalize('config.yaml'); file = fs.readFileSync(filePath, 'utf8') } catch (error) { - console.error('Error reading config.yml file ', error); + console.error('Error reading config.yaml file ', error); process.exit(0); } try {