replaced panic with probe
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user