From 358b2e53663d53a093bcd452d6aa3592634e93d0 Mon Sep 17 00:00:00 2001 From: ingalls Date: Fri, 6 Dec 2024 16:28:18 -0700 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 4 ++++ index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45cfe49..01ad356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ ## Version History +### v6.4.0 + +- :rocket: Avoid printing work `Error` when no env file is present for easier log parsing + ### v6.3.0 - :rocket: Ensure static `name` value matches remote layer diff --git a/index.ts b/index.ts index 29069cf..ced77b8 100644 --- a/index.ts +++ b/index.ts @@ -50,7 +50,7 @@ export function env(current: string) { Object.assign(process.env, JSON.parse(String(fs.readFileSync(dotfile)))); } catch (err) { - console.log(`ok - no .env file loaded: ${err}`); + console.log(`ok - no .env file loaded: ${err instanceof Error ? err.message : 'unknown reason'}`); } }