MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / modelExecutionError

Function modelExecutionError

internal/pluginhost/host_callbacks.go:309–320  ·  view source on GitHub ↗
(errMsg *interfaces.ErrorMessage)

Source from the content-addressed store, hash-verified

307}
308
309func modelExecutionError(errMsg *interfaces.ErrorMessage) error {
310 if errMsg == nil {
311 return nil
312 }
313 if errMsg.Error != nil {
314 return errMsg.Error
315 }
316 if errMsg.StatusCode > 0 {
317 return fmt.Errorf("model execution failed with status %d", errMsg.StatusCode)
318 }
319 return fmt.Errorf("model execution failed")
320}
321
322func (h *Host) callHostLog(ctx context.Context, request []byte) ([]byte, error) {
323 var req rpcHostLogRequest

Callers 2

callHostModelExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected