Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

475 B
Raw Blame
// Not anchored: local IPC prefixes "Error invoking remote method '…': Error: ".
const STATUS_ERROR_PATTERN = /\bError (\d{3}):\s*([\s\S]*)$/

/** Reads the `Error <status>: <details>` shape main gives a failed Jira request; null without it. */
export function parseJiraStatusError(message: string): { code: number; details: string } | null {
  const match = STATUS_ERROR_PATTERN.exec(message)
  return match ? { code: Number(match[1]), details: match[2].trim() } : null
}