From 0b84771a1f449b8242958befc3de3caae75f4c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Senart?= Date: Fri, 21 Nov 2014 11:45:52 +0100 Subject: [PATCH] Use double quote for error wraping --- lib/dumpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dumpers.go b/lib/dumpers.go index 3e5e199e..d4e9bda8 100644 --- a/lib/dumpers.go +++ b/lib/dumpers.go @@ -23,7 +23,7 @@ func (f DumperFunc) Dump(r *Result) ([]byte, error) { return f(r) } // request latency in ns, bytes out, bytes in, and lastly the error. var DumpCSV DumperFunc = func(r *Result) ([]byte, error) { var buf bytes.Buffer - _, err := fmt.Fprintf(&buf, "%d,%d,%d,%d,%d,'%s'\n", + _, err := fmt.Fprintf(&buf, "%d,%d,%d,%d,%d,\"%s\"\n", r.Timestamp.UnixNano(), r.Code, r.Latency.Nanoseconds(),