fix: Remove query from literal error stream

The parser can't handle colons in the expression (it throws/crashes)
This commit is contained in:
John Colvin committed 2025-07-23 10:55:31 -04:00
1 parent 186ebb5309
commit bbc07ce5fe
1 file changed
+2 -3
@@ -12,8 +12,7 @@ namespace bts.SilverPine {
public DSLStream(string dsl) {
Log.Gen.info($"DSLStream.cons dsl: {dsl}");
_dsl = dsl;
ViewStream rs = build_stream(dsl);
rs = rs ?? new LiteralStream("error", $"msg:invalid dsl \"{dsl}\"");
ViewStream rs = build_stream(dsl) ?? new LiteralStream("error", $"msg:invalid dsl");
mySetRealSource(rs);
}
@@ -29,4 +28,4 @@ namespace bts.SilverPine {
}
}
}
}
}