Skip to content

Commit

Permalink
fix(command-env): handle non existing import file on node 8 (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored Sep 2, 2020
1 parent 895ca69 commit 781b470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/env/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class EnvImportCommand extends Command {
const envFileContents = fs.readFileSync(fileName)
importedEnv = dotenv.parse(envFileContents)
} catch (e) {
this.error(e)
this.log(e.message)
this.exit(1)
}

if (isEmpty(importedEnv)) {
Expand Down

0 comments on commit 781b470

Please sign in to comment.