diff options
Diffstat (limited to 'libgo/go/exp/template/html/js.go')
-rw-r--r-- | libgo/go/exp/template/html/js.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/exp/template/html/js.go b/libgo/go/exp/template/html/js.go index 5646f8a4fd8..22be4183d77 100644 --- a/libgo/go/exp/template/html/js.go +++ b/libgo/go/exp/template/html/js.go @@ -148,7 +148,7 @@ func jsValEscaper(args ...interface{}) string { // turning into // x//* error marshalling y: // second line of error message */null - return fmt.Sprintf(" /* %s */null ", strings.Replace(err.String(), "*/", "* /", -1)) + return fmt.Sprintf(" /* %s */null ", strings.Replace(err.Error(), "*/", "* /", -1)) } // TODO: maybe post-process output to prevent it from containing |