Some tweaks about errors

This commit is contained in:
Miek Gieben 2012-04-18 14:06:10 +02:00
parent 3ef88ef28d
commit 7f78754c1d
2 changed files with 1 additions and 2 deletions

2
dns.go
View File

@ -93,7 +93,7 @@ type Error struct {
func (e *Error) Error() string {
if e == nil {
return "<nil>"
return "dns: <nil>"
}
if e.Name == "" {
return e.Err

View File

@ -66,7 +66,6 @@ type ParseError struct {
}
func (e *ParseError) Error() (s string) {
// va := strconv.Itoa(e.lex.value)
if e.file != "" {
s = e.file + ": "
}