MCPcopy Create free account
hub / github.com/Axosoft/nsfw / getError

Method getError

src/linux/InotifyService.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61std::string InotifyService::getError() {
62 if (mTree != NULL && mTree->hasErrored()) {
63 return mTree->getError();
64 }
65
66 if (!isWatching()) {
67 return "Service shutdown unexpectedly";
68 }
69
70 return "";
71}
72
73bool InotifyService::hasErrored() {
74 return !isWatching() || (mTree == NULL ? false : mTree->hasErrored());

Callers

nothing calls this directly

Calls 1

hasErroredMethod · 0.45

Tested by

no test coverage detected