diff options
author | Clombrong <cromblong@egregore.fun> | 2025-06-25 00:45:46 +0200 |
---|---|---|
committer | Clombrong <cromblong@egregore.fun> | 2025-06-25 00:45:46 +0200 |
commit | 1becf17af5e7795e32332a464e06517800c71391 (patch) | |
tree | 0db273b2611779ffbfd1dc0978fa8aeeaf045a6c /lib | |
parent | 6770a7cd102216175c278f28a5d93902a3e42409 (diff) |
feat(sasl): add match unrecoverable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sasl.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sasl.ml b/lib/sasl.ml index 1fcd661..f5a5ae0 100644 --- a/lib/sasl.ml +++ b/lib/sasl.ml @@ -12,6 +12,10 @@ type sasl_error = | NotAuthorized | MalformedRequest +let unrecoverable = function + | NotAuthorized -> true + | _ -> false + let parse_sasl_error = function | "not-authorized" -> NotAuthorized | "malformed-request" -> MalformedRequest |