diff options
Diffstat (limited to 'src/pkg/exp/template/html/js.go')
| -rw-r--r-- | src/pkg/exp/template/html/js.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exp/template/html/js.go b/src/pkg/exp/template/html/js.go index 5646f8a4fd..22be4183d7 100644 --- a/src/pkg/exp/template/html/js.go +++ b/src/pkg/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 |
