Added better error reporting for command groups.