From d5782c7e8635832e045c94ff2962df0afcdfa188 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 12 Mar 2024 06:47:57 -0400 Subject: [PATCH] fix: bad error message --- api/s5/s5.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 7e1b33f..d59f098 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -1769,7 +1769,7 @@ func (s *S5API) downloadMetadata(jc jape.Context) { switch cidDecoded.Type { case types.CIDTypeRaw: - _ = jc.Error(errors.New("Raw CIDs do not have s5libmetadata"), http.StatusBadRequest) + _ = jc.Error(errors.New("Raw CIDs do not have metadata"), http.StatusBadRequest) return case types.CIDTypeResolver: @@ -1779,8 +1779,8 @@ func (s *S5API) downloadMetadata(jc jape.Context) { meta, err := s.getNode().Services().Storage().GetMetadataByCID(cidDecoded) - if jc.Check("error getting s5libmetadata", err) != nil { - s.logger.Error("error getting s5libmetadata", zap.Error(err)) + if jc.Check("error getting metadata", err) != nil { + s.logger.Error("error getting metadata", zap.Error(err)) return }