MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / assertFeedback

Method assertFeedback

src/Hooks.cpp:436–445  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

434
435////////////////////////////////////////////////////////////////////////////////
436void Hooks::assertFeedback(const std::vector<std::string>& input, const std::string& script) const {
437 bool foundSomething = false;
438 for (auto& i : input)
439 if (nontrivial(i)) foundSomething = true;
440
441 if (!foundSomething) {
442 Context::getContext().error(format(STRING_HOOK_ERROR_NOFEEDBACK, Path(script).name()));
443 throw 0;
444 }
445}
446
447////////////////////////////////////////////////////////////////////////////////
448std::vector<std::string>& Hooks::buildHookScriptArgs(std::vector<std::string>& args) const {

Callers

nothing calls this directly

Calls 2

nontrivialFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected