aboutsummaryrefslogtreecommitdiffstats
path: root/lib/scl
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-05-23 01:07:14 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-05-23 01:07:14 +0000
commitdb3198d7c5ad7bc60bd24bd1bb2c7b122a6dfbd0 (patch)
tree0671ce12b98db653af87de99a443b9f83a623cb5 /lib/scl
parent2190193397596663c4de4f51f8355300c1833997 (diff)
downloadSakura-db3198d7c5ad7bc60bd24bd1bb2c7b122a6dfbd0.tar.gz
Sakura-db3198d7c5ad7bc60bd24bd1bb2c7b122a6dfbd0.zip
Include messages on on all conditions
Diffstat (limited to 'lib/scl')
-rw-r--r--lib/scl/executor.ml2
-rw-r--r--lib/scl/parser.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/scl/executor.ml b/lib/scl/executor.ml
index 3785c4a..e40fde6 100644
--- a/lib/scl/executor.ml
+++ b/lib/scl/executor.ml
@@ -16,7 +16,7 @@ module Make (NT : Nt.S) = struct
module Error = struct
open Condition
(* TODO: more structure *)
- let cursor_error msg = condition "cursor-error" ("message" |=| (of_string msg))
+ let cursor_error msg = condition "cursor-error" msg empty
end
let ( let* ) = Result.bind
diff --git a/lib/scl/parser.ml b/lib/scl/parser.ml
index 86c3f99..53719ee 100644
--- a/lib/scl/parser.ml
+++ b/lib/scl/parser.ml
@@ -1,6 +1,6 @@
module Error = struct
open Condition
- let parse_error msg = condition "parse-error" ("message" |=| (of_string msg))
+ let parse_error msg = condition "parse-error" msg empty
end
let validate = function