Skip to content

Commit 60f1f0c

Browse files
author
Julio Arenere
committed
UPDATE message errors
1 parent 96083cf commit 60f1f0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

replication.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func getReplicationPolicy(server, user, password, apiVersion string, policyId in
3030
if res.StatusCode < 399 && res.StatusCode > 100 {
3131
json.Unmarshal([]byte(body), &rp)
3232
} else {
33-
log.Fatal("Error getting replication policy ", policyId)
33+
log.Fatalf("Error getting replication policy: %d, errorCode: %d\n", policyId, res.StatusCode)
3434
os.Exit(1)
3535

3636
}
@@ -107,7 +107,7 @@ func getLastExecution(server, user, password, apiVersion string, policyId int) R
107107
if res.StatusCode < 399 && res.StatusCode > 100 {
108108
json.Unmarshal([]byte(body), &r)
109109
} else {
110-
log.Fatal("Error getting replication Executin ", policyId)
110+
log.Fatal("Error getting Execution ", policyId)
111111
os.Exit(1)
112112

113113
}
@@ -135,7 +135,7 @@ func getReplicationExecution(server, user, password, apiVersion string, executio
135135
if res.StatusCode < 399 && res.StatusCode > 100 {
136136
json.Unmarshal([]byte(body), &r)
137137
} else {
138-
log.Fatal("Error getting replication Executin ", executionID)
138+
log.Fatalf("Error getting replication Execution: %d ,errorCode %d\n", executionID, res.StatusCode)
139139
os.Exit(1)
140140
}
141141
return r

0 commit comments

Comments
 (0)