From fe60dd382d87172d42e2c89de3d36b34e49a1cfe Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Mon, 13 Oct 2025 14:47:46 +0530 Subject: [PATCH] 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