Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
56cba885
Commit
56cba885
authored
Nov 04, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
panic can't print interfaces well so use err.String()
R=rsc
http://go/go-review/1016041
parent
2f792d32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
regexp.go
src/pkg/regexp/regexp.go
+1
-1
template.go
src/pkg/template/template.go
+1
-1
No files found.
src/pkg/regexp/regexp.go
View file @
56cba885
...
...
@@ -630,7 +630,7 @@ func Compile(str string) (regexp *Regexp, error os.Error) {
func
MustCompile
(
str
string
)
*
Regexp
{
regexp
,
error
:=
Compile
(
str
);
if
error
!=
nil
{
panicln
(
`regexp: compiling "`
,
str
,
`": `
,
error
);
panicln
(
`regexp: compiling "`
,
str
,
`": `
,
error
.
String
()
);
}
return
regexp
;
}
...
...
src/pkg/template/template.go
View file @
56cba885
...
...
@@ -898,7 +898,7 @@ func Parse(s string, fmap FormatterMap) (t *Template, err os.Error) {
func
MustParse
(
s
string
,
fmap
FormatterMap
)
*
Template
{
t
,
err
:=
Parse
(
s
,
fmap
);
if
err
!=
nil
{
panic
(
"template parse error: "
,
err
);
panic
(
"template parse error: "
,
err
.
String
()
);
}
return
t
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment