Skip to content

Commit 6c6b1bf

Browse files
authored
Merge pull request #84 from appbaseio/fix/fatal_errors
fix: use error log instead of fatal in billing
2 parents cda8e9d + af708fb commit 6c6b1bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

util/billing.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func SetClusterPlan() {
277277
}
278278
_, err := getClusterPlan(clusterID)
279279
if err != nil {
280-
log.Fatalln("Unable to fetch the cluster plan. Please make sure that you're using a valid CLUSTER_ID. If the issue persists please contact support@appbase.io with your ARC_ID or registered e-mail address.", err)
280+
log.Errorln("Unable to fetch the cluster plan. Please make sure that you're using a valid CLUSTER_ID. If the issue persists please contact support@appbase.io with your ARC_ID or registered e-mail address.", err)
281281
return
282282
}
283283
}
@@ -363,7 +363,7 @@ func ReportUsage() {
363363

364364
result, err := getArcInstance(arcID)
365365
if err != nil {
366-
log.Fatalln("Unable to fetch the arc instance. Please make sure that you're using a valid ARC_ID. If the issue persists please contact support@appbase.io with your ARC_ID or registered e-mail address.")
366+
log.Errorln("Unable to fetch the arc instance. Please make sure that you're using a valid ARC_ID. If the issue persists please contact support@appbase.io with your ARC_ID or registered e-mail address.")
367367
return
368368
}
369369

@@ -412,7 +412,7 @@ func ReportHostedArcUsage() {
412412
// getArcClusterInstance(clusterId)
413413
result, err := getArcClusterInstance(clusterID)
414414
if err != nil {
415-
log.Fatalln("Unable to fetch the arc instance. Please make sure that you're using a valid CLUSTER_ID. If the issue persists please contact support@appbase.io with your ARC_ID or registered e-mail address.", err)
415+
log.Errorln("Unable to fetch the arc instance. Please make sure that you're using a valid CLUSTER_ID. If the issue persists please contact support@appbase.io with your ARC_ID or registered e-mail address.", err)
416416
return
417417
}
418418

0 commit comments

Comments
 (0)