Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
TER-273: Improve error log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Caussat committed May 14, 2018
1 parent 78190f3 commit 4404d37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ghost/resource_ghost_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ func expandGhostAppFeatures(d []interface{}) *[]ghost.Feature {
param = `{}`
}
if err := json.Unmarshal([]byte(param.(string)), &jsonDoc); err != nil {
log.Printf("Error loading feature paramaters json: %v", err)
log.Printf("[ERROR] can't load feature.parameters json: %v", err)
}

feature := ghost.Feature{
Expand Down Expand Up @@ -827,11 +827,11 @@ func suppressDiffFeaturesParameters() schema.SchemaDiffSuppressFunc {
var oldJSON, newJSON interface{}

if err := json.Unmarshal([]byte(old), &oldJSON); err != nil {
log.Printf("Error loading feature parameters json: %v", err)
log.Printf("[ERROR] can't load feature.parameters json: %v", err)
}

if err := json.Unmarshal([]byte(new), &newJSON); err != nil {
log.Printf("Error loading feature parameters json: %v", err)
log.Printf("[ERROR] can't load feature.parameters json: %v", err)
}

// If the new parameters structure is equivalent to the old one,
Expand Down

0 comments on commit 4404d37

Please sign in to comment.