MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / showChatError

Function showChatError

frontend/src/utils/error-handler.ts:25–38  ·  view source on GitHub ↗
({
  message,
  source,
  metadata = {},
  msgId,
}: ErrorDetails)

Source from the content-addressed store, hash-verified

23}
24
25export function showChatError({
26 message,
27 source,
28 metadata = {},
29 msgId,
30}: ErrorDetails) {
31 trackError({ message, source, metadata });
32 handleStatusMessage({
33 type: "error",
34 message,
35 id: msgId,
36 status_update: true,
37 });
38}
39
40/**
41 * Checks if an error message indicates an OpenHands budget or credit limit issue.

Callers 1

Calls 2

handleStatusMessageFunction · 0.90
trackErrorFunction · 0.85

Tested by

no test coverage detected