code: func makeError(m []KV) error {
  	kv := findRec(m, "ERROR")
  	if kv.Key == "" {
  		return &Error{Message: "generic error"}
  	}
  	return &Error{Message: string(kv.Value)}
  }
docs: // TODO: make this return errors that can be introspected more easily
  // and make it trim components of the error to filter out unused information.