Make sure errors are logged on mdm endpoints (#871)

This commit is contained in:
Kory Prince
2023-04-10 13:24:03 -05:00
committed by GitHub
parent 6cefb0b8d0
commit 1f93237863

View File

@@ -138,8 +138,7 @@ func encodeResponse(ctx context.Context, w http.ResponseWriter, response interfa
}
if e, ok := response.(failer); ok && e.Failed() != nil {
encodeError(ctx, e.Failed(), w)
return nil
return e.Failed()
}
w.WriteHeader(http.StatusOK)