+3
-4
@@ -72,10 +72,9 @@ func (a AliasMessage) String() string {
|
||||
message += console.Colorize("URL", fmt.Sprintf("%s", a.URL))
|
||||
return message
|
||||
}
|
||||
jsonMessageBytes, err := json.Marshal(a)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
jsonMessageBytes, e := json.Marshal(a)
|
||||
fatalIf(probe.NewError(e), "Unable to marshall into JSON.")
|
||||
|
||||
return string(jsonMessageBytes)
|
||||
}
|
||||
|
||||
|
||||
@@ -56,10 +56,9 @@ func (c ContentMessage) String() string {
|
||||
}()
|
||||
return message
|
||||
}
|
||||
jsonMessageBytes, err := json.Marshal(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
jsonMessageBytes, e := json.Marshal(c)
|
||||
fatalIf(probe.NewError(e), "Unable to marshall into JSON.")
|
||||
|
||||
return string(jsonMessageBytes)
|
||||
}
|
||||
|
||||
|
||||
+3
-4
@@ -58,10 +58,9 @@ func (s MirrorMessage) String() string {
|
||||
if !globalJSONFlag {
|
||||
return fmt.Sprintf("‘%s’ -> ‘%s’", s.Source, s.Targets)
|
||||
}
|
||||
mirrorMessageBytes, err := json.Marshal(s)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
mirrorMessageBytes, e := json.Marshal(s)
|
||||
fatalIf(probe.NewError(e), "Unable to marshall into JSON.")
|
||||
|
||||
return string(mirrorMessageBytes)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user