From 49f41fb17b7c406638f6fc7d64821e6fb8b1334a Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 4 Mar 2012 10:41:16 +0100 Subject: [PATCH] Install example right away --- ex/Makefile | 2 +- zscan.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ex/Makefile b/ex/Makefile index 8eedcdcb..858d32dd 100644 --- a/ex/Makefile +++ b/ex/Makefile @@ -8,4 +8,4 @@ EXAMPLES=mx \ q \ ex: - for i in $(EXAMPLES); do echo $$i; (cd $$i && go build); done + for i in $(EXAMPLES); do echo $$i; (cd $$i && go install); done diff --git a/zscan.go b/zscan.go index 9fafeb20..1a6b8732 100644 --- a/zscan.go +++ b/zscan.go @@ -343,8 +343,8 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) { case _RRTYPE: h.Rrtype = l.torc st = _EXPECT_RDATA - case _NEWLINE: - t <- Token{Error: &ParseError{f, "premature newline, no RR type seen", l}} + default: + t <- Token{Error: &ParseError{f, "expecting RR type or class, not this...", l}} return } case _EXPECT_ANY_NOCLASS: