Skip to content

Commit 4f5b013

Browse files
committed
Make message handler throw NotIndexed if not overdue
This completes the fix of "not indexed" errors, which was inadvertently omitted in a previous fix.
1 parent 8b2dd97 commit 4f5b013

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/message_handler.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ MessageHandler::FindOrFail(const std::string &path, ReplyOnce &reply,
274274
}
275275
QueryFile *file = FindFile(path, out_file_id);
276276
if (!file) {
277+
if (!overdue)
278+
throw NotIndexed{path};
277279
reply.Error(ErrorCode::InvalidRequest, "not indexed");
278280
return {nullptr, nullptr};
279281
}

0 commit comments

Comments
 (0)