diff --git a/src/commands/env/import.js b/src/commands/env/import.js index b4c5ff9e6ee..50f55c284db 100644 --- a/src/commands/env/import.js +++ b/src/commands/env/import.js @@ -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)) {