From 737b1d82d2bab0acc846c2cb96b7ac2fe32b67d8 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 25 Sep 2018 13:52:54 -0700 Subject: [PATCH] client: add comment --- client/fs_endpoint.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/fs_endpoint.go b/client/fs_endpoint.go index 307ccb8e7..95f1a9695 100644 --- a/client/fs_endpoint.go +++ b/client/fs_endpoint.go @@ -836,6 +836,9 @@ func logIndexes(entries []*cstructs.AllocFileInfo, task, logType string) (indexT return indexTupleArray(indexes), nil } +// notFoundErr is returned when a log is requested but cannot be found. +// Implements agent.HTTPCodedError but does not reference it to avoid circular +// imports. type notFoundErr struct { taskName string logType string