MCPcopy Create free account
hub / github.com/openai/plugins / collectErrorMessage

Function collectErrorMessage

plugins/plugin-eval/src/core/benchmark-events.js:65–79  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

63}
64
65function collectErrorMessage(event) {
66 if (!event || typeof event !== "object") {
67 return null;
68 }
69
70 if (typeof event.message === "string" && event.type === "error") {
71 return event.message;
72 }
73
74 if (typeof event.error?.message === "string") {
75 return event.error.message;
76 }
77
78 return null;
79}
80
81function extractShellCommand(event) {
82 if (!event || typeof event !== "object") {

Callers 1

summarizeCodexEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected