From fe60dd382d87172d42e2c89de3d36b34e49a1cfe Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Mon, 13 Oct 2025 14:47:46 +0530 Subject: [PATCH 1/2] improve error messages --- src/utils/branch-helper.ts | 4 ++-- src/utils/config-handler.ts | 6 +++--- src/utils/dependency-resolver.ts | 4 ++-- src/utils/query-parser.ts | 8 ++++---- src/utils/referenced-asset-handler.ts | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) 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 Date: Fri, 7 Nov 2025 14:36:21 +0530 Subject: [PATCH 2/2] version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": {