MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / stepFailure

Function stepFailure

app/src/API/Handlers/AssistantHandler.cpp:656–663  ·  view source on GitHub ↗

* @brief Re-emit an inner-step failure as an outer error response that carries steps[]. */

Source from the content-addressed store, hash-verified

654 * @brief Re-emit an inner-step failure as an outer error response that carries steps[].
655 */
656static API::CommandResponse stepFailure(const QString& outerId,
657 const API::CommandResponse& inner,
658 const QJsonArray& steps)
659{
660 QJsonObject data;
661 data[QStringLiteral("steps")] = steps;
662 return API::CommandResponse::makeError(outerId, inner.errorCode, inner.errorMessage, data);
663}
664
665/**
666 * @brief Resolve widgetType (slug string or DashboardWidget integer) into a slug.

Callers 1

workspaceAddTileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected