package dkml-package-console

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

Install

Dune Dependency

Authors

Maintainers

Sources

dkml-install-0.5.2.tbz
md5=5b294da54e4474f8d260c7190fec8c85
sha512=33274eafb995b4ba9d1bdb05e63b466e621255155fe5c6df7f368b086e6658634eff07079a51c0501cd1ab6817ba637f3222a00e146b8c360e24b7488ca66b63

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.