package dkml-package-console

  1. Overview
  2. Docs
Console setup and uninstall executables for DkML installation

Install

Dune Dependency

Authors

Maintainers

Sources

src.tar.gz
md5=e61b1ab5693a4749caae1959aea6fd70
sha512=8321e92d8c204eb26da69c8b522fbcca0c38fbc61a26d1d367aad28e6c8c3d4ee8933596b9a63f8c6d6c3bbd36582292d5bfd4680906e4a2e4bef45e3f6f17aa

doc/src/dkml-package-console.common/error_utils.ml.html

Source file error_utils.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let get_ok_or_failwith_string = function
  | Ok v -> v
  | Error s ->
      Logs.err (fun l -> l "FATAL: %s" s);
      failwith s

let get_ok_or_failwith_rresult = function
  | Ok v -> v
  | Error msg ->
      Logs.err (fun l -> l "FATAL: %a" Rresult.R.pp_msg msg);
      failwith (Fmt.str "FATAL: %a" Rresult.R.pp_msg msg)

let box_err s =
  Logs.err (fun l -> l "FATAL: %s" s);
  failwith s
OCaml

Innovation. Community. Security.