From 68c8690683f93987af0f29cc5a8ee1f652ae456c Mon Sep 17 00:00:00 2001 From: Socheat Sok Date: Thu, 25 Aug 2022 13:02:04 +0700 Subject: [PATCH] Fix error message from config method --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 9b281b9..9347941 100644 --- a/lib/main.js +++ b/lib/main.js @@ -96,7 +96,7 @@ async function config(options) { _log(`Failed to load ${dotenvPath} ${e.message}`) } - return { error: e } + return { error: new Error(`Failed to load ${dotenvPath} ${e.message}`) } } }