readme: handle parse errors in example (#20)
This commit is contained in:
parent
18acbf96bd
commit
d846011a9b
@ -66,6 +66,13 @@ func main() {
|
|||||||
log.Fatal("Error:" + err.Error())
|
log.Fatal("Error:" + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(parserErrors) > 0 {
|
||||||
|
for _, e := range parserErrors {
|
||||||
|
log.Println(e.String())
|
||||||
|
}
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
// Dump
|
// Dump
|
||||||
|
|
||||||
goDumper := dumper.NewDumper(os.Stdout).
|
goDumper := dumper.NewDumper(os.Stdout).
|
||||||
|
Loading…
Reference in New Issue
Block a user