Skip to content

Commit

Permalink
Add debug message if no encoding is specified
Browse files Browse the repository at this point in the history
If no encoding is specified in the options, debug will alert the user that
UTF-8 will be used as the default.

Closes #657
  • Loading branch information
anthonyshibitov committed May 14, 2023
1 parent 48b4451 commit 8f73112
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ function _configDotenv (options) {
}
if (options.encoding != null) {
encoding = options.encoding
} else {
if (debug) {
_debug('No encoding is specified. UTF-8 is used by default')
}
}
}

Expand Down

0 comments on commit 8f73112

Please sign in to comment.