MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getPreToolHookBlockingMessage

Function getPreToolHookBlockingMessage

source code/utils/hooks.ts:1884–1889  ·  view source on GitHub ↗
(
  hookName: string,
  blockingError: HookBlockingError,
)

Source from the content-addressed store, hash-verified

1882 * @returns Formatted blocking message
1883 */
1884export function getPreToolHookBlockingMessage(
1885 hookName: string,
1886 blockingError: HookBlockingError,
1887): string {
1888 return `${hookName} hook error: ${blockingError.blockingError}`
1889}
1890
1891/**
1892 * Format a list of blocking errors from a Stop hook's configured commands.

Callers 1

runPreToolUseHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected