env-cmd icon indicating copy to clipboard operation
env-cmd copied to clipboard

Need more helpful message when .env.js has error

Open siva-sankaran opened this issue 3 years ago • 0 comments

When .env.js file throwing error like "Cannot find module '...' " , env-cmd tells us that "Failed to find .env file at path: {filePath}". This message is not telling the real issue.

Alternatively "Something went wrong when accessing env file path: ${filePath}" will be better. Can someone add your comments or correct this message with better English ?

https://github.com/toddbluhm/env-cmd/blob/66f3fa398685b83ef089532af3de67cc82d7b3ac/src/get-env-vars.ts#L38

siva-sankaran avatar Jan 31 '22 06:01 siva-sankaran