openclaw/src/infra/outbound/target-errors.ts

9 lines
324 B
TypeScript
Raw Normal View History

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));
}