aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ddl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ddl')
-rw-r--r--lib/ddl/executor.ml4
-rw-r--r--lib/ddl/parser.ml2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/ddl/executor.ml b/lib/ddl/executor.ml
index de64cf5..c61b02e 100644
--- a/lib/ddl/executor.ml
+++ b/lib/ddl/executor.ml
@@ -2,8 +2,8 @@ module Make (NT : Nt.S) = struct
module Error = struct
open Condition
(* TODO: more structure *)
- 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 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/ddl/parser.ml b/lib/ddl/parser.ml
index 49fa7e0..a4df914 100644
--- a/lib/ddl/parser.ml
+++ b/lib/ddl/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 =