From 25399cde9e5dc612632fbd594f9f92ce9b3c4a87 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Fri, 21 Sep 2018 13:51:11 +1000 Subject: [PATCH] Fix erroneously "fixed" error message. --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index a502412..e70af31 100644 --- a/context.go +++ b/context.go @@ -552,7 +552,7 @@ func checkMissingChildren(node *Node) error { if len(missing) == 1 { return fmt.Errorf("expected %s", missing[0]) } - return fmt.Errorf("expected %s", strings.Join(missing, " ")) + return fmt.Errorf("expected one of %s", strings.Join(missing, ", ")) } // If we're missing any positionals and they're required, return an error.