Optimize the error message

Signed-off-by: chengdehao <dehaocheng@yunify.com>
This commit is contained in:
chengdehao
2022-01-24 16:52:02 +08:00
parent 77d14fe4dc
commit 37369334f1
5 changed files with 44 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ func TestCountLogsByInterval(t *testing.T) {
fakeVersion: es.ElasticV7,
fakeResp: "es7_count_logs_by_interval_400.json",
fakeCode: http.StatusBadRequest,
expectedErr: "type: search_phase_execution_exception, reason: all shards failed",
expectedErr: "type: search_phase_execution_exception, reason: Unable to parse interval [30m0s]",
},
{
fakeVersion: es.ElasticV7,