Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
const cloudName = process.env.CLOUDINARY_CLOUD_NAME || inputs.cloudName;

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

const functionsPath = INTERNAL_FUNCTIONS_SRC || FUNCTIONS_SRC;
Expand Down Expand Up @@ -112,8 +112,8 @@ module.exports = {
const host = process.env.DEPLOY_PRIME_URL;

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

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

if ( !cloudName ) {
throw new Error('Cloudinary Cloud Name required. Please use environment variable CLOUDINARY_CLOUD_NAME');
throw new Error('Cloudinary Cloud Name required. Please use an environment variable CLOUDINARY_CLOUD_NAME');
}

configureCloudinary({
Expand Down
2 changes: 1 addition & 1 deletion src/templates/functions/cld_images.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports.handler = async function (event, context) {
const apiSecret = process.env.CLOUDINARY_API_SECRET;

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

configureCloudinary({
Expand Down