aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dml')
-rw-r--r--lib/dml/executor.ml7
-rw-r--r--lib/dml/parser.ml2
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/dml/executor.ml b/lib/dml/executor.ml
index f149965..c35f128 100644
--- a/lib/dml/executor.ml
+++ b/lib/dml/executor.ml
@@ -4,10 +4,9 @@ module Make (NT : Nt.S) = struct
module Error = struct
open Condition
(* TODO: more structure *)
- let parse_error msg = condition "parse-error" ("message" |=| (of_string msg))
- let relation_not_found name = condition "relation-not-found" ("name" |=| (of_string name))
- let multigroup_not_found name = condition "multigroup-not-found" ("name" |=| (of_string name))
- let unqualified_name name = condition "unqualified-name" ("name" |=| (of_string name))
+ let parse_error msg = condition "parse-error" msg empty
+ let relation_not_found name = condition "relation-not-found" "Relation not found" ("name" |=| (of_string name))
+ let multigroup_not_found name = condition "multigroup-not-found" "Multigroup not found" ("name" |=| (of_string name))
end
let ( let* ) = Result.bind
diff --git a/lib/dml/parser.ml b/lib/dml/parser.ml
index 49fa7e0..a4df914 100644
--- a/lib/dml/parser.ml
+++ b/lib/dml/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 of_sexp sexp =