MCPcopy Create free account
hub / github.com/astercloud/aster / createGenericErrorMessage

Function createGenericErrorMessage

ui/src/protocol/client-message.ts:77–86  ·  view source on GitHub ↗
(
  code: string,
  surfaceId: string,
  message: string,
  details?: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

75 * Create a ClientMessage containing a generic error
76 */
77export function createGenericErrorMessage(
78 code: string,
79 surfaceId: string,
80 message: string,
81 details?: Record<string, unknown>,
82): ClientMessage {
83 return {
84 error: createGenericError(code, surfaceId, message, details),
85 };
86}
87
88/**
89 * Resolve action context by replacing path references with actual values

Callers

nothing calls this directly

Calls 1

createGenericErrorFunction · 0.90

Tested by

no test coverage detected