diff --git a/package-lock.json b/package-lock.json index 52c2009..518f2af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-export-query", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/cli-cm-export-query", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "license": "MIT", "dependencies": { "@contentstack/cli-cm-export": "~1.20.2", diff --git a/package.json b/package.json index 91566c0..a2d9fac 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-export-query", "description": "Contentstack CLI plugin to export content from stack", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/src/utils/branch-helper.ts b/src/utils/branch-helper.ts index 1bcf717..9afc118 100644 --- a/src/utils/branch-helper.ts +++ b/src/utils/branch-helper.ts @@ -12,7 +12,7 @@ import { log } from './logger'; */ export const setupBranches = async (config: QueryExportConfig, stackAPIClient: any): Promise => { if (typeof config !== 'object') { - throw new Error('Invalid config to setup the branch'); + throw new Error('The branch configuration is invalid.'); } try { @@ -35,7 +35,7 @@ export const setupBranches = async (config: QueryExportConfig, stackAPIClient: a if (result && typeof result === 'object') { log(config, `Branch '${config.branchName}' found`, 'success'); } else { - throw new Error(`No branch found with the name '${config.branchName}'`); + throw new Error(`No branch found named ${config.branchName}.`); } } else { // If no branch name provided, check if the stack has branches diff --git a/src/utils/config-handler.ts b/src/utils/config-handler.ts index 463b56a..94eccfc 100644 --- a/src/utils/config-handler.ts +++ b/src/utils/config-handler.ts @@ -38,17 +38,17 @@ export async function setupQueryExportConfig(flags: any): Promise