[server] avoid scary error msgs if payment/billing configuration is not found

This commit is contained in:
mngshm
2025-03-10 11:58:59 +05:30
parent 8830deb619
commit 26cb6ad722
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ func NewOfferController(
blackFridayOffers := make(ente.BlackFridayOfferPerCountry)
path, err := config.BillingConfigFilePath("black-friday.json")
if err != nil {
log.Fatalf("Error getting offer config file: %v", err)
log.Fatalf("Skipping BF configuration, config file not found: %v", err)
}
data, err := os.ReadFile(path)
if err != nil {

View File

@@ -88,7 +88,7 @@ func parsePricingFile(fileName string) ente.BillingPlansPerCountry {
}
data, err := os.ReadFile(filePath)
if err != nil {
logrus.Errorf("Error reading file %s: %v\n", filePath, err)
logrus.Errorf("Skipping payment configuration, (config file not found): %v\n", err)
return nil
}