9 lines
324 B
TypeScript
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));
|
|
}
|