replaced panic with probe

This commit is contained in:
Anand Babu (AB) Periasamy
2015-08-22 23:22:17 -07:00
parent 34a0d64f97
commit d8bb1e9fd6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func (a AliasMessage) String() string {
}
jsonMessageBytes, err := json.Marshal(a)
if err != nil {
panic(err)
fatalIf(probe.NewError(e), "Unable to marshall into JSON.")
}
return string(jsonMessageBytes)
}
+1 -1
View File
@@ -58,7 +58,7 @@ func (c ContentMessage) String() string {
}
jsonMessageBytes, err := json.Marshal(c)
if err != nil {
panic(err)
fatalIf(probe.NewError(e), "Unable to marshall into JSON.")
}
return string(jsonMessageBytes)
}
+1 -1
View File
@@ -60,7 +60,7 @@ func (s MirrorMessage) String() string {
}
mirrorMessageBytes, err := json.Marshal(s)
if err != nil {
panic(err)
fatalIf(probe.NewError(e), "Unable to marshall into JSON.")
}
return string(mirrorMessageBytes)
}