env-cmd
env-cmd copied to clipboard
Need more helpful message when .env.js has error
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