package dkml-package-console

  1. Overview
  2. Docs
Console setup and uninstall executables for Diskuv OCaml (DKML) installation

Install

Dune Dependency

Authors

Maintainers

Sources

dkml-install-api-0.4.0.tar.gz
md5=1b3f42a06b0643eb502e6f65d1769b98
sha512=55d47cb8c570f3e9fbdb5f4f7960c86fbe357df6c5364c82c9eb326150693fa1dbffe3fa3f5682e355f770c5f3c53bd7ce88ec1d1d9eefecceb8f44ed8b1d326

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.