From 332b859589f14248fb0226d38c476b6ad8645f85 Mon Sep 17 00:00:00 2001 From: Jordon <16258926+Jordonbc@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:21:05 +0000 Subject: [PATCH 1/3] Apply suggested fix to Frontend/src/scripts/features/branches.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- Frontend/src/scripts/features/branches.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/src/scripts/features/branches.ts b/Frontend/src/scripts/features/branches.ts index 63c4a2e..12a52a3 100644 --- a/Frontend/src/scripts/features/branches.ts +++ b/Frontend/src/scripts/features/branches.ts @@ -269,7 +269,7 @@ export function bindBranchUI() { await loadBranches(); await runHook('postBranchDelete', hookData); } catch (e) { - const msg = String(e || ''); + const msg = String(e); if (wantForce) { notify(`Force delete failed${msg ? `: ${msg}` : ''}`); return; } // If not fully merged, offer force delete as a fallback const ok2 = await confirmDeleteBranch({ From e322036216db7ea868aac12d52d1fe361fdc910c Mon Sep 17 00:00:00 2001 From: Jordon <16258926+Jordonbc@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:21:06 +0000 Subject: [PATCH 2/3] Apply suggested fix to Frontend/src/scripts/features/branches.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- Frontend/src/scripts/features/branches.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/src/scripts/features/branches.ts b/Frontend/src/scripts/features/branches.ts index 12a52a3..3cd4f57 100644 --- a/Frontend/src/scripts/features/branches.ts +++ b/Frontend/src/scripts/features/branches.ts @@ -218,7 +218,7 @@ export function bindBranchUI() { notify(`Merged branch '${name}' into '${cur}'`); await Promise.allSettled([renderList(), loadBranches()]); } catch (e) { - const msg = String(e || ''); + const msg = String(e); const looksLikeConflict = /CONFLICT/i.test(msg) || /Automatic merge failed/i.test(msg) || From 3cdc975b07d3a375fe39fa94ce5739ca9adc276b Mon Sep 17 00:00:00 2001 From: Jordon <16258926+Jordonbc@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:21:06 +0000 Subject: [PATCH 3/3] Apply suggested fix to Frontend/src/scripts/features/branches.ts from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- Frontend/src/scripts/features/branches.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Frontend/src/scripts/features/branches.ts b/Frontend/src/scripts/features/branches.ts index 3cd4f57..5b0bea3 100644 --- a/Frontend/src/scripts/features/branches.ts +++ b/Frontend/src/scripts/features/branches.ts @@ -181,8 +181,9 @@ export function bindBranchUI() { notify(`Switched to ${name}`); await renderList(); // higher-level refresh await runHook('postSwitchBranch', hookData); - } catch { - notify('Checkout failed'); + } catch (err) { + const details = err instanceof Error ? err.message : String(err); + notify(`Checkout failed: ${details}`); } }