Files
clawdbot/src/infra/outbound/target-errors.ts
2026-01-17 04:28:22 +00:00

9 lines
324 B
TypeScript

export function missingTargetMessage(provider: string, hint?: string): string {
const suffix = hint ? ` ${hint}` : "";
return `Delivering to ${provider} requires target${suffix}`;
}
export function missingTargetError(provider: string, hint?: string): Error {
return new Error(missingTargetMessage(provider, hint));
}