Skip to content

Commit d133241

Browse files
committed
[cain/cqlsh] add descriptive error message for describe schema error
1 parent f50baaa commit d133241

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cain/cqlsh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func DescribeKeyspaceSchema(iK8sClient interface{}, namespace, pod, container, k
4040
command := []string{fmt.Sprintf("DESC %s;", keyspace)}
4141
schema, err := Cqlsh(iK8sClient, namespace, pod, container, command)
4242
if err != nil {
43-
return nil, "", err
43+
return nil, "", fmt.Errorf("Could not describe schema. make sure a schema exists for keyspace \"%s\". %s", keyspace, err)
4444
}
4545
h := sha256.New()
4646
h.Write(schema)

0 commit comments

Comments
 (0)