Skip to content

Commit

Permalink
change messages for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlewis committed Nov 17, 2016
1 parent 253df63 commit d664fe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/prismic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.' }
]
},
{
Expand All @@ -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.' },
Expand Down
6 changes: 3 additions & 3 deletions lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}

Expand Down

0 comments on commit d664fe1

Please sign in to comment.