diff --git a/lib/prismic.js b/lib/prismic.js index 53f796f7..d081416d 100644 --- a/lib/prismic.js +++ b/lib/prismic.js @@ -33,7 +33,7 @@ function help(config) { { name: '$ prismic new', summary: 'Create a project with a new prismic repository.' }, { name: '$ prismic init foobar', summary: 'Create a project for the foobar repository' }, { name: '$ prismic init foobar --folder ~/Desktop/myProject --template NodeJS --noconfirm', summary: 'Create a NodeJS project, non-interactive' }, - { name: '$ prismic theme https://github.com/prismicio/nodejs-sdk', summary: 'Create a project from zip file with a new prismic repository.' } + { name: '$ prismic theme https://github.com/prismicio/nodejs-sdk', summary: 'Create a project from a zip file with a new prismic repository.' } ] }, { @@ -42,7 +42,7 @@ function help(config) { { name: 'quickstart', summary: 'Create a project: initialize a node.js quickstart project with a new prismic repository.' }, { name: 'init', summary: 'Initialize a project: initialize the code from a template for an existing prismic repository.' }, { name: 'new', summary: 'Create a project: initialize the code for a new prismic repository.' }, - { name: 'theme', summary: 'Create a project: initialize project from zip file or GitHub repository with a new prismic repository.' }, + { name: 'theme', summary: 'Create a project: initialize project from a theme with a new prismic repository.' }, { name: 'login', summary: 'Login to an existing prismic.io account.' }, { name: 'logout', summary: 'Logout from an existing prismic.io account.' }, { name: 'signup', summary: 'Create a new prismic.io account.' }, diff --git a/lib/repository.js b/lib/repository.js index 20f7b57c..d09ff203 100644 --- a/lib/repository.js +++ b/lib/repository.js @@ -49,13 +49,13 @@ async function validateTheme(themeURL) { if(isValidConfig) { return Helpers.Theme.make(themeData.name, themeData.url, themeData.innerFolder, tmpFolder); } else { - return retry(themeURL, 'Invalid theme. You should have a \'prismic-configuration.js\' with the prismic apiEndpoint'); + return retry(themeURL, 'Invalid theme provided, check your zip file.'); } } else { - return retry(themeURL, 'Invalid theme URL provided.'); + return retry(themeURL, 'Invalid theme provided, check your zip file.'); } } catch(exception) { - return retry(themeURL, 'Invalid theme provided, check your zip file, it cannot be read.'); + return retry(themeURL, 'Invalid theme provided, check your zip file.'); } }