Skip to content

Commit 532a994

Browse files
authored
Merge pull request #11 from Chuloo/main
some error message text additions
2 parents ed12cad + 1905b87 commit 532a994

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
const cloudName = process.env.CLOUDINARY_CLOUD_NAME || inputs.cloudName;
3333

3434
if ( !cloudName ) {
35-
throw new Error('Cloudinary Cloud Name required. Please set cloudName input or use environment variable CLOUDINARY_CLOUD_NAME');
35+
throw new Error('A Cloudinary Cloud Name is required. Please set cloudName input or use the environment variable CLOUDINARY_CLOUD_NAME');
3636
}
3737

3838
const functionsPath = INTERNAL_FUNCTIONS_SRC || FUNCTIONS_SRC;
@@ -112,8 +112,8 @@ module.exports = {
112112
const host = process.env.DEPLOY_PRIME_URL;
113113

114114
if ( !host ) {
115-
console.warn('Can not determine Netlify host, not proceeding with on-page image replacement.');
116-
console.log('Note: the Netlify CLI does not currently support the ability to determine the host locally, try deploying on Netlify.');
115+
console.warn('Cannot determine Netlify host, not proceeding with on-page image replacement.');
116+
console.log('Note: The Netlify CLI does not currently support the ability to determine the host locally, try deploying on Netlify.');
117117
return;
118118
}
119119

@@ -122,7 +122,7 @@ module.exports = {
122122
const apiSecret = process.env.CLOUDINARY_API_SECRET;
123123

124124
if ( !cloudName ) {
125-
throw new Error('Cloudinary Cloud Name required. Please use environment variable CLOUDINARY_CLOUD_NAME');
125+
throw new Error('Cloudinary Cloud Name required. Please use an environment variable CLOUDINARY_CLOUD_NAME');
126126
}
127127

128128
configureCloudinary({

src/templates/functions/cld_images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports.handler = async function (event, context) {
1515
const apiSecret = process.env.CLOUDINARY_API_SECRET;
1616

1717
if ( !cloudName ) {
18-
throw new Error('Cloudinary Cloud Name required. Please set cloudName input or use environment variable CLOUDINARY_CLOUD_NAME');
18+
throw new Error('A Cloudinary Cloud Name is required. Please set cloudName input or use an environment variable CLOUDINARY_CLOUD_NAME');
1919
}
2020

2121
configureCloudinary({

0 commit comments

Comments
 (0)