MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _check_errors

Method _check_errors

unity_cli/api/uitree_monkey.py:140–146  ·  view source on GitHub ↗

Check console for new errors since last clear, then clear to avoid duplicates.

(self)

Source from the content-addressed store, hash-verified

138 return elements
139
140 def _check_errors(self) -> list[dict[str, Any]]:
141 """Check console for new errors since last clear, then clear to avoid duplicates."""
142 resp = self._console.get(types=["error"])
143 entries: list[dict[str, Any]] = resp.get("entries", [])
144 if entries:
145 self._console.clear()
146 return [{"source": "console", **e} for e in entries]

Callers 1

_handle_errorsMethod · 0.95

Calls 2

getMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected