From 7f3e61f174f695d4d0e8e14c14b538bed4edf8c4 Mon Sep 17 00:00:00 2001 From: Nico Korthout Date: Fri, 14 Jul 2017 22:56:45 +0200 Subject: [PATCH] feat(ConfigReader): Inform about init command (#340) * Inform about `init` command when `stryker.conf.js` could not be found. --- packages/stryker/src/ConfigReader.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/stryker/src/ConfigReader.ts b/packages/stryker/src/ConfigReader.ts index fe5ee951c8..f8443e7a18 100644 --- a/packages/stryker/src/ConfigReader.ts +++ b/packages/stryker/src/ConfigReader.ts @@ -47,6 +47,8 @@ export default class ConfigReader { } else { log.fatal('Invalid config file!\n ' + e.stack); } + log.info('Stryker can help you setup a `stryker.conf` file for your project.'); + log.info('Please execute `stryker init` in your project\'s root directory.'); process.exit(1); } if (!_.isFunction(configModule)) {