Skip to content

Commit bdb22f5

Browse files
authored
Merge pull request #23 from gyant/ryanthompson/fix-schema-backup-error
Makes BackupKeyspaceSchema return an error on failure
2 parents be0e30d + f1d973f commit bdb22f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cain/cqlsh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func BackupKeyspaceSchema(iK8sClient, iDstClient interface{}, namespace, pod, co
2929

3030
reader := bytes.NewReader(schema)
3131
if err := skbn.Upload(iDstClient, dstPrefix, schemaToPath, "", reader); err != nil {
32-
return "", nil
32+
return "", err
3333
}
3434

3535
return dstBasePath, nil

0 commit comments

Comments
 (0)