Merge pull request #1031 from abperiasamy/err-update-7

Err update 7
This commit is contained in:
Anand Babu (AB) Periasamy
2015-08-22 23:28:06 -07:00
3 changed files with 9 additions and 12 deletions
+3 -4
View File
@@ -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)
}
+3 -4
View File
@@ -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
View File
@@ -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)
}