MCPcopy Create free account
hub / github.com/openclaw/clawsweeper / missingLabelError

Function missingLabelError

src/clawsweeper.ts:11180–11183  ·  view source on GitHub ↗
(error: unknown, label: string)

Source from the content-addressed store, hash-verified

11178}
11179
11180function missingLabelError(error: unknown, label: string): boolean {
11181 const message = error instanceof Error ? error.message : String(error);
11182 return message.includes(`'${label}' not found`) || message.includes(`"${label}" not found`);
11183}
11184
11185function labelCapacityError(error: unknown): boolean {
11186 const message = error instanceof Error ? error.message : String(error);

Calls

no outgoing calls

Tested by

no test coverage detected