Skip to content

Commit 3702653

Browse files
committed
fix: keep issue merge invariant as cli error
1 parent 8296b5e commit 3702653

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/commands/issue/merge.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { type MergeIssuesResult, mergeIssues } from "../../lib/api-client.js";
2525
import { buildCommand } from "../../lib/command.js";
2626
import {
2727
ApiError,
28+
CliError,
2829
ResolutionError,
2930
ValidationError,
3031
} from "../../lib/errors.js";
@@ -125,7 +126,7 @@ async function resolveAllIssues(
125126
if (!org) {
126127
// Unreachable — resolved.length >= 1 (callers guard for <2) and we
127128
// just asserted every entry has a non-empty org.
128-
throw new Error("Internal error: resolved issue missing org slug.");
129+
throw new CliError("Internal error: resolved issue missing org slug.");
129130
}
130131

131132
// Dedupe on resolved numeric ID: a user may pass the same issue in

0 commit comments

Comments
 (0)