| 59 | } |
| 60 | |
| 61 | std::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 | |
| 73 | bool InotifyService::hasErrored() { |
| 74 | return !isWatching() || (mTree == NULL ? false : mTree->hasErrored()); |
nothing calls this directly
no test coverage detected