Skip to content

Commit

Permalink
node: warn when envvar can't be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored Oct 13, 2020
1 parent 3f56313 commit 8f3a1d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ exports.inspectOpts = Object.keys(process.env).filter(key => {
val = null;
} else {
val = Number(val);
if (Number.isNaN(val))
log(`Cannot parse ${key}=${process.env[key]}`)
}

obj[prop] = val;
Expand Down

0 comments on commit 8f3a1d2

Please sign in to comment.