mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 07:11:02 +00:00
better error reporting if delete fails
This commit is contained in:
parent
a08560d01e
commit
d5bd031451
1 changed files with 6 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ package clustertest
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
|
@ -124,7 +125,11 @@ func TestClusterStuff(t *testing.T) {
|
|||
} else if resp, err := client.Do(req); err != nil {
|
||||
t.Fatalf("doing request: %v", err)
|
||||
} else if resp.StatusCode >= 400 {
|
||||
t.Fatalf("bad response: %v", resp)
|
||||
bod, readErr := io.ReadAll(resp.Body)
|
||||
if readErr != nil {
|
||||
t.Logf("reading error body: %v", readErr)
|
||||
}
|
||||
t.Fatalf("deleting index: code=%d, body=%s", resp.StatusCode, bod)
|
||||
}
|
||||
|
||||
var restoreCmd *exec.Cmd
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue