Skip to content

Commit

Permalink
fix(cli): printed path. Closes #2699
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 18, 2020
1 parent 4891f1d commit 51335d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/packages/cli/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ if (process.argv.length > 2) {
fs.existsSync('prisma/.env')
) {
dotenvResult = dotenv.config({ path: 'prisma/.env' })
console.log(chalk.dim('Environment variables loaded from ./prisma/.env'))
// needed for Windows
const relative = path.relative('.', './prisma/.env')
console.log(chalk.dim(`Environment variables loaded from ${relative}`))
} // We didn't find a .env file next to the prisma.schema file.
else {
debug('Environment variables not loaded')
Expand Down

0 comments on commit 51335d5

Please sign in to comment.