Index: perf/go/shortcut/shortcut.go |
diff --git a/perf/go/shortcut/shortcut.go b/perf/go/shortcut/shortcut.go |
index 810f2389f33f327bec715b09e4c942234395a43b..1a5791d405446944ffe044084c49fa8e06046cd5 100644 |
--- a/perf/go/shortcut/shortcut.go |
+++ b/perf/go/shortcut/shortcut.go |
@@ -27,11 +27,11 @@ func Insert(r io.Reader) (string, error) { |
} |
result, err := db.DB.Exec(`INSERT INTO shortcuts (traces) VALUES (?)`, string(b)) |
if err != nil { |
- return "", fmt.Errorf("Error while inserting shortcut: err", err) |
+ return "", fmt.Errorf("Error while inserting shortcut: %v", err) |
} |
id, err := result.LastInsertId() |
if err != nil { |
- return "", fmt.Errorf("Error retrieving ID of new shortcut:", err) |
+ return "", fmt.Errorf("Error retrieving ID of new shortcut: %v", err) |
} |
return fmt.Sprintf("%d", id), nil |
} |