From 7f78754c1dbf9a822fc64621e0a045d8f2c14b2c Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 18 Apr 2012 14:06:10 +0200 Subject: [PATCH] Some tweaks about errors --- dns.go | 2 +- zscan.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dns.go b/dns.go index f0b785b0..0086866f 100644 --- a/dns.go +++ b/dns.go @@ -93,7 +93,7 @@ type Error struct { func (e *Error) Error() string { if e == nil { - return "" + return "dns: " } if e.Name == "" { return e.Err diff --git a/zscan.go b/zscan.go index 1a6b8732..44b46160 100644 --- a/zscan.go +++ b/zscan.go @@ -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 + ": " }