Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file warnings.ml
123456789101112131415161718192021222324252627282930313233343536373839(** This module implements a warning management module *)typewarning=|Configofconfig_warningandconfig_warning=|Missing_keyof(string*stringlist*string)(* Aimed at providing info
about incorrect json
config file. The string
list is a path to the
group of the expected key
*)|Missing_nameof(string*stringlist*string*string)|Missing_engineof(string*stringlist*string*string)|Default_engines|Default_colors|Bad_groupof(string*stringlist*string*Yojson.Basic.t*string*string)|Json_errorofstringletgrp_preamblefilepath=matchpathwith|[]->Printf.sprintf"In file \"%s\""file|path->Printf.sprintf"In file \"%s\", under the path \"%s\""file(Utils.string_of_list" -> "(funx->x)path)letissue_warning=function|Config(Missing_key(file,path,key))->Logs.warn(funm->m"%s, key \"%s\" is missing"(grp_preamblefilepath)key)|Config(Missing_name(file,path,key,msg))->Logs.warn(funm->m"%s, key \"%s\" is missing in association with signature engine \"%s\""(grp_preamblefilepath)keymsg)|Config(Missing_engine(file,path,key,msg))->Logs.warn(funm->m"%s, key \"%s\" is missing in association with signature name \"%s\""(grp_preamblefilepath)keymsg)|ConfigDefault_engines->Logs.warn(funm->m"Using default signature to engine mapping")|ConfigDefault_colors->Logs.warn(funm->m"Using default bacground and node colors")|Config(Bad_group(file,path,yojson_msg,json,msg,msg'))->let()=Logs.warn(funm->m"%s, %s"(grp_preamblefilepath)yojson_msg)inlet()=Logs.warn(funm->m"%s, but got: \"%s\""msg(Yojson.Basic.pretty_to_string~std:truejson))inLogs.warn(funm->m"%s"msg')|Config(Json_errormsg)->let()=Logs.warn(funm->m"Json error: %s"msg)inLogs.warn(funm->m"Using default configuration")