"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
box: return errors instead of calling log.Fatal with them #5234
Nick Craig-Woodef3c35068619
diff --git a/backend/box/box.go b/backend/box/box.goindex a74d597c5..3bea1bc67 100644--- a/backend/box/box.go+++ b/backend/box/box.go@@ -157,15 +157,15 @@ func refreshJWTToken(ctx context.Context, jsonFile string, boxSubType string, najsonFile = env.ShellExpand(jsonFile)boxConfig, err := getBoxConfig(jsonFile)if err != nil {- log.Fatalf("Failed to configure token: %v", err)+ return errors.Wrap(err, "get box config")}privateKey, err := getDecryptedPrivateKey(boxConfig)if err != nil {- log.Fatalf("Failed to configure token: %v", err)+ return errors.Wrap(err, "get decrypted private key")}claims, err := getClaims(boxConfig, boxSubType)if err != nil {- log.Fatalf("Failed to configure token: %v", err)+ return errors.Wrap(err, "get claims")}signingHeaders := getSigningHeaders(boxConfig)queryParams := getQueryParams(boxConfig)