From dc5a7966776545ef984c2b1fbcfb620d4e9db6de Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 9 Sep 2016 14:35:19 -0700 Subject: [PATCH] improve error message for not finding a manifest file --- bin/now-deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/now-deploy b/bin/now-deploy index 85b1ea9..1f8392b 100755 --- a/bin/now-deploy +++ b/bin/now-deploy @@ -231,13 +231,13 @@ async function sync (token) { if (debug) console.log('[debug] `Dockerfile` found, assuming `deploymentType` = `docker`'); deploymentType = 'docker'; } else { - error(`Could not read directory ${chalk.bold(path)}`); + error(`Could not access a ${chalk.dim('`package.json`')} or ${chalk.dim('`Dockerfile`')} in ${chalk.bold(path)}`); + console.log(`> To deploy statically, try: ${chalk.dim(chalk.underline('https://zeit.co/blog/serve-it-now'))}.`); process.exit(1); } } } - const now = new Now(apiUrl, token, { debug }); const envs = [].concat(argv.env || []);