Skip to content

Commit 86a16b3

Browse files
committed
Merge branch 'main' into individual-redirects
2 parents f71206d + 532a994 commit 86a16b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = {
2424
const host = process.env.DEPLOY_PRIME_URL;
2525

2626
if ( !host ) {
27-
console.warn('Can not determine Netlify host, not proceeding with on-page image replacement.');
28-
console.log('Note: the Netlify CLI does not currently support the ability to determine the host locally, try deploying on Netlify.');
27+
console.warn('Cannot determine Netlify host, not proceeding with on-page image replacement.');
28+
console.log('Note: The Netlify CLI does not currently support the ability to determine the host locally, try deploying on Netlify.');
2929
return;
3030
}
3131

@@ -42,7 +42,7 @@ module.exports = {
4242
const apiSecret = process.env.CLOUDINARY_API_SECRET;
4343

4444
if ( !cloudName ) {
45-
throw new Error('Cloudinary Cloud Name required. Please use environment variable CLOUDINARY_CLOUD_NAME');
45+
throw new Error('A Cloudinary Cloud Name is required. Please set cloudName input or use the environment variable CLOUDINARY_CLOUD_NAME');
4646
}
4747

4848
configureCloudinary({
@@ -91,8 +91,8 @@ module.exports = {
9191
const host = process.env.DEPLOY_PRIME_URL;
9292

9393
if ( !host ) {
94-
console.warn('Can not determine Netlify host, not proceeding with on-page image replacement.');
95-
console.log('Note: the Netlify CLI does not currently support the ability to determine the host locally, try deploying on Netlify.');
94+
console.warn('Cannot determine Netlify host, not proceeding with on-page image replacement.');
95+
console.log('Note: The Netlify CLI does not currently support the ability to determine the host locally, try deploying on Netlify.');
9696
return;
9797
}
9898

@@ -108,7 +108,7 @@ module.exports = {
108108
const apiSecret = process.env.CLOUDINARY_API_SECRET;
109109

110110
if ( !cloudName ) {
111-
throw new Error('Cloudinary Cloud Name required. Please use environment variable CLOUDINARY_CLOUD_NAME');
111+
throw new Error('A Cloudinary Cloud Name is required. Please set cloudName input or use the environment variable CLOUDINARY_CLOUD_NAME');
112112
}
113113

114114
configureCloudinary({

0 commit comments

Comments
 (0)