diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/cmd/bucket.go b/cmd/bucket.go index fa97bd3..fa6c821 100644 --- a/cmd/bucket.go +++ b/cmd/bucket.go @@ -84,7 +84,14 @@ to quickly create a Cobra application.`, up, _ := vcap.GetUserProvidedCredentials("mc") bucket_local_tables(source_creds, up) } else { - up, _ := vcap.GetS3Credentials(DestinationBucket) + up, err := vcap.GetS3Credentials(DestinationBucket) + if err != nil { + logging.Logger.Printf("BACKUPS could not get s3 credentials") + os.Exit(-1) + } + if Debug { + logging.Logger.Printf("BACKUPS s3 credentials %v\n", up) + } bucket_cgov_tables(source_creds, up) }