Merge pull request #8579 from erikh/builder_html_panic

builder: handle anything we cannot parse the command for as a fatal error
This commit is contained in:
Alexandr Morozov
2014-10-15 12:01:52 -07:00
3 changed files with 17 additions and 4 deletions
+4 -1
View File
@@ -72,7 +72,10 @@ func parseLine(line string) (string, *Node, error) {
return line, nil, nil
}
cmd, args := splitCommand(line)
cmd, args, err := splitCommand(line)
if err != nil {
return "", nil, err
}
node := &Node{}
node.Value = cmd