Adjusting Fatal to Fatalf
This commit is contained in:
parent
d0a654ea18
commit
7e9bf47c60
@ -52,7 +52,7 @@ func gettrends() {
|
|||||||
|
|
||||||
data, err := json.Marshal(totalJson)
|
data, err := json.Marshal(totalJson)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("error marshaling combined activity: %v", err)
|
log.Fatalf("error marshaling combined activity: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
trendingexport = string(data)
|
trendingexport = string(data)
|
||||||
@ -140,7 +140,7 @@ func search(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
data, err := json.Marshal(totalJson)
|
data, err := json.Marshal(totalJson)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("error marshaling combined activity: %v", err)
|
log.Fatalf("error marshaling combined activity: %v\n", err)
|
||||||
}
|
}
|
||||||
fmt.Fprintf(w, "%s", data)
|
fmt.Fprintf(w, "%s", data)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user