Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3322)

Issue 5527046: code review 5527046: text/template: handle panic values that are not errors. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by remyoudompheng
Modified:
12 years, 3 months ago
Reviewers:
CC:
golang-dev, r, r2, gri, remy_archlinux.org
Visibility:
Public.

Description

text/template: handle panic values that are not errors. The recover code assumes that the panic() argument was an error, but it is usually a simple string. Fixes issue 2663.

Patch Set 1 #

Patch Set 2 : diff -r 52ae6fbcc97a https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 52ae6fbcc97a https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r 47b0b8eb5461 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M src/pkg/text/template/exec.go View 1 2 3 1 chunk +6 lines, -2 lines 1 comment Download

Messages

Total messages: 11
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-01-07 08:47:13 UTC) #1
r
http://codereview.appspot.com/5527046/diff/1002/src/pkg/text/template/exec.go File src/pkg/text/template/exec.go (right): http://codereview.appspot.com/5527046/diff/1002/src/pkg/text/template/exec.go#newcode78 src/pkg/text/template/exec.go:78: // level of Parse. this comment is wrong. my ...
12 years, 3 months ago (2012-01-09 06:20:01 UTC) #2
remyoudompheng
http://codereview.appspot.com/5527046/diff/1002/src/pkg/text/template/exec.go File src/pkg/text/template/exec.go (right): http://codereview.appspot.com/5527046/diff/1002/src/pkg/text/template/exec.go#newcode85 src/pkg/text/template/exec.go:85: switch err := e.(type) { On 2012/01/09 06:20:01, r ...
12 years, 3 months ago (2012-01-09 07:07:05 UTC) #3
r2
Please do. -rob
12 years, 3 months ago (2012-01-09 07:12:29 UTC) #4
remyoudompheng
Hello golang-dev@googlegroups.com, r@golang.org, r@google.com (cc: golang-dev@googlegroups.com, remy@archlinux.org), Please take another look.
12 years, 3 months ago (2012-01-09 20:10:07 UTC) #5
r
http://codereview.appspot.com/5527046/diff/1003/src/pkg/text/template/exec.go File src/pkg/text/template/exec.go (right): http://codereview.appspot.com/5527046/diff/1003/src/pkg/text/template/exec.go#newcode88 src/pkg/text/template/exec.go:88: } switch err := e.(type) { default: fallthrough case ...
12 years, 3 months ago (2012-01-09 20:42:29 UTC) #6
remyoudompheng
On 2012/01/09 20:42:29, r wrote: > http://codereview.appspot.com/5527046/diff/1003/src/pkg/text/template/exec.go > File src/pkg/text/template/exec.go (right): > > http://codereview.appspot.com/5527046/diff/1003/src/pkg/text/template/exec.go#newcode88 > ...
12 years, 3 months ago (2012-01-09 20:45:47 UTC) #7
gri
FYI: The spec does restrict the use of "fallthrough" to expression switches: On Mon, Jan ...
12 years, 3 months ago (2012-01-09 20:52:13 UTC) #8
gri
I meant to send the link as well: http://golang.org/doc/go_spec.html#Fallthrough_statements - gri On Mon, Jan 9, ...
12 years, 3 months ago (2012-01-09 20:52:32 UTC) #9
r2
On Jan 9, 2012, at 12:45 PM, remyoudompheng@gmail.com wrote: > On 2012/01/09 20:42:29, r wrote: ...
12 years, 3 months ago (2012-01-09 20:53:27 UTC) #10
r
12 years, 3 months ago (2012-01-09 21:04:51 UTC) #11
*** Submitted as 6ff6aceb5f4b ***

text/template: handle panic values that are not errors.

The recover code assumes that the panic() argument was
an error, but it is usually a simple string.
Fixes issue 2663.

R=golang-dev, r, r, gri
CC=golang-dev, remy
http://codereview.appspot.com/5527046

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b