Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Unified Diff: perf/go/activitylog/activitylog.go

Issue 777413002: Add new tests to presubmit, fix errors (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « monitoring/go/prober/main.go ('k') | perf/go/alerting/alerting.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: perf/go/activitylog/activitylog.go
diff --git a/perf/go/activitylog/activitylog.go b/perf/go/activitylog/activitylog.go
index a850942759581a86694ab1add77594b9de546c74..ad69e4cc6db4b75956e82b37e9da7ee0d8f94d00 100644
--- a/perf/go/activitylog/activitylog.go
+++ b/perf/go/activitylog/activitylog.go
@@ -17,7 +17,7 @@ import (
func Write(r *types.Activity) error {
glog.Infof("Write activity: %s\n", r)
if r.UserID == "" || r.Action == "" {
- return fmt.Errorf("Activity UserID and Action cannot be empty: %s\n", r)
+ return fmt.Errorf("Activity UserID and Action cannot be empty: %v\n", r)
}
_, err := db.DB.Exec(
"INSERT INTO activitylog (timestamp, userid, action, url) VALUES (?, ?, ?, ?)",
« no previous file with comments | « monitoring/go/prober/main.go ('k') | perf/go/alerting/alerting.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698