wrap error messages

Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
huanggze
2019-07-04 20:28:58 +08:00
committed by zryfish
parent d16aee1176
commit 78f9e1b74d
4 changed files with 24 additions and 23 deletions

View File

@@ -232,7 +232,7 @@ func FluentbitOutputsQuery() *FluentbitOutputsResult {
outputs, err := GetFluentbitOutputFromConfigMap()
if err != nil {
result.Status = http.StatusNotFound
result.Status = http.StatusInternalServerError
result.Error = err.Error()
return &result
}