@malloydata/render 0.0.361 → 0.0.363

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13885,7 +13885,7 @@ class Fq {
13885
13885
  ], a = [Ht.RepeatedRecord, Ht.Record];
13886
13886
  for (const p of s)
13887
13887
  n.has(p) && !a.includes(r) && i.error(
13888
- `Tag '${p}' on field '${t.name}' requires a nested query, but field is ${r}`,
13888
+ `Tag '${p}' on field '${t.name}' requires a nested query, but field is ${r}. Try moving the tag to the line above the query, run, nest, or view declaration.`,
13889
13889
  n.tag(p)
13890
13890
  );
13891
13891
  n.has("link") && r !== Ht.String && i.error(
@@ -124625,7 +124625,7 @@ const VZe = {
124625
124625
  matches: (e, t, n) => {
124626
124626
  const r = t.has("viz") ? t.text("viz") === "line" : t.has("line_chart"), i = n === Ht.RepeatedRecord;
124627
124627
  if (r && !i)
124628
- throw new Error("Malloy Line Chart: field is a line chart, but is not a repeated record");
124628
+ throw new Error("Malloy Line Chart: field is a line chart, but is not a repeated record. Try moving the tag to the line above the query, run, nest, or view declaration.");
124629
124629
  return r && i;
124630
124630
  },
124631
124631
  create: (e, t, n) => {
@@ -125762,7 +125762,7 @@ const tQe = {
125762
125762
  matches: (e, t, n) => {
125763
125763
  const r = t.has("viz") ? t.text("viz") === "bar" : t.has("bar_chart"), i = n === Ht.RepeatedRecord;
125764
125764
  if (r && !i)
125765
- throw new Error("Malloy Bar Chart: field is a bar chart, but is not a repeated record");
125765
+ throw new Error("Malloy Bar Chart: field is a bar chart, but is not a repeated record. Try moving the tag to the line above the query, run, nest, or view declaration.");
125766
125766
  return r && i;
125767
125767
  },
125768
125768
  create: (e) => {
@@ -126497,7 +126497,7 @@ const SQe = {
126497
126497
  const s = t.tag("big_value");
126498
126498
  if (s != null && s.has("sparkline") || s != null && s.has("comparison_field"))
126499
126499
  return !1;
126500
- throw new Error("Malloy Big Value: field must be a query result (repeated record or record)");
126500
+ throw new Error("Malloy Big Value: field must be a query result (repeated record or record). Try moving the tag to the line above the query, run, nest, or view declaration.");
126501
126501
  }
126502
126502
  return r && i;
126503
126503
  },
@@ -126585,7 +126585,7 @@ const CQe = {
126585
126585
  matches: (e, t, n) => {
126586
126586
  const r = t.has("scatter_chart"), i = n === Ht.RepeatedRecord;
126587
126587
  if (r && !i)
126588
- throw new Error("Malloy Scatter Chart: field is a scatter chart, but is not a repeated record");
126588
+ throw new Error("Malloy Scatter Chart: field is a scatter chart, but is not a repeated record. Try moving the tag to the line above the query, run, nest, or view declaration.");
126589
126589
  return r && i;
126590
126590
  },
126591
126591
  create: (e) => {
@@ -126750,7 +126750,7 @@ const DQe = {
126750
126750
  matches: (e, t, n) => {
126751
126751
  const r = t.has("shape_map"), i = n === Ht.RepeatedRecord;
126752
126752
  if (r && !i)
126753
- throw new Error("Malloy Shape Map: field is a shape map, but is not a repeated record");
126753
+ throw new Error("Malloy Shape Map: field is a shape map, but is not a repeated record. Try moving the tag to the line above the query, run, nest, or view declaration.");
126754
126754
  return r && i;
126755
126755
  },
126756
126756
  create: (e) => {
@@ -126902,7 +126902,7 @@ const PQe = {
126902
126902
  matches: (e, t, n) => {
126903
126903
  const r = t.has("segment_map"), i = n === Ht.RepeatedRecord;
126904
126904
  if (r && !i)
126905
- throw new Error("Malloy Segment Map: field is a segment map, but is not a repeated record");
126905
+ throw new Error("Malloy Segment Map: field is a segment map, but is not a repeated record. Try moving the tag to the line above the query, run, nest, or view declaration.");
126906
126906
  return r && i;
126907
126907
  },
126908
126908
  create: (e) => {