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

Issue 5306065: code review 5306065: template: fix error checking on execute without parse (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by bytbox
Modified:
13 years, 9 months ago
Reviewers:
CC:
r, golang-dev
Visibility:
Public.

Description

template: fix error checking on execute without parse Fixed error checking in exec.go to give a sensible error message when execution is attempted before a successful parse (rather than an outright panic).

Patch Set 1 #

Patch Set 2 : diff -r 7c1f789e6efd https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 98206d517897 https://go.googlecode.com/hg/ #

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

Patch Set 5 : diff -r be0ca97757bc https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r be0ca97757bc https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M src/pkg/exp/template/html/escape_test.go View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/template/exec.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
bytbox
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-10-26 06:10:42 UTC) #1
bytbox
Disregard this for now - it breaks the tests for some reason. Sorry for the ...
13 years, 9 months ago (2011-10-26 06:23:46 UTC) #2
bytbox
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-10-26 06:52:24 UTC) #3
bytbox
A couple of tests in exp/template/html were relying on inappropriate panics from Execute - these ...
13 years, 9 months ago (2011-10-26 06:53:29 UTC) #4
rsc
R=r
13 years, 9 months ago (2011-10-26 17:55:15 UTC) #5
r
LGTM
13 years, 9 months ago (2011-10-31 23:05:14 UTC) #6
r
13 years, 9 months ago (2011-10-31 23:07:21 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=4866e8431426 ***

template: fix error checking on execute without parse

Fixed error checking in exec.go to give a sensible error message when
execution is attempted before a successful parse (rather than an
outright panic).

R=r
CC=golang-dev
http://codereview.appspot.com/5306065

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