aboutsummaryrefslogtreecommitdiffstats
path: root/lib/nt.ml
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/nt.ml
parent2190193397596663c4de4f51f8355300c1833997 (diff)
downloadSakura-db3198d7c5ad7bc60bd24bd1bb2c7b122a6dfbd0.tar.gz
Sakura-db3198d7c5ad7bc60bd24bd1bb2c7b122a6dfbd0.zip
Include messages on on all conditions
Diffstat (limited to 'lib/nt.ml')
-rw-r--r--lib/nt.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/nt.ml b/lib/nt.ml
index 0adf6d9..8622110 100644
--- a/lib/nt.ml
+++ b/lib/nt.ml
@@ -37,11 +37,11 @@ type plan_node =
module Error = struct
open Condition
(* TODO: better error structure *)
- let auth_failed msg = condition "auth-failed" ("message" |=| (of_string msg))
- let handle_error msg = condition "handle-error" ("message" |=| (of_string msg))
- let cursor_error msg = condition "cursor-error" ("message" |=| (of_string msg))
- let not_supported msg = condition "not-supported" ("message" |=| (of_string msg))
- let initialization_error = condition "initialization-error" empty
+ let auth_failed msg = condition "auth-failed" msg empty
+ let handle_error msg = condition "handle-error" msg empty
+ let cursor_error msg = condition "cursor-error" msg empty
+ let not_supported msg = condition "not-supported" msg empty
+ let initialization_error = condition "initialization-error" "Couldn't initialize" empty
end
(* --------------------------------------------------------------------------