Skip to content

Commit

Permalink
[cain/cqlsh] add descriptive error message for describe schema error
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Dec 26, 2018
1 parent f50baaa commit d133241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cain/cqlsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func DescribeKeyspaceSchema(iK8sClient interface{}, namespace, pod, container, k
command := []string{fmt.Sprintf("DESC %s;", keyspace)}
schema, err := Cqlsh(iK8sClient, namespace, pod, container, command)
if err != nil {
return nil, "", err
return nil, "", fmt.Errorf("Could not describe schema. make sure a schema exists for keyspace \"%s\". %s", keyspace, err)
}
h := sha256.New()
h.Write(schema)
Expand Down

0 comments on commit d133241

Please sign in to comment.