mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
internal error message
This commit is contained in:
parent
0262019d45
commit
214bc55aae
@ -48,6 +48,12 @@ let raise_multispanned_error (spans : (string option * Pos.t) list) format =
|
||||
let raise_error format =
|
||||
Format.kasprintf (fun msg -> raise (StructuredError (msg, []))) format
|
||||
|
||||
let raise_internal_error format =
|
||||
raise_error
|
||||
("Internal Error, please report to \
|
||||
https://github.com/CatalaLang/catala/issues: "
|
||||
^^ format)
|
||||
|
||||
(** {1 Warning printing}*)
|
||||
|
||||
let format_multispanned_warning (pos : (string option * Pos.t) list) format =
|
||||
|
@ -34,6 +34,7 @@ val raise_multispanned_error :
|
||||
(string option * Pos.t) list -> ('a, Format.formatter, unit, 'b) format4 -> 'a
|
||||
|
||||
val raise_error : ('a, Format.formatter, unit, 'b) format4 -> 'a
|
||||
val raise_internal_error : ('a, Format.formatter, unit, 'b) format4 -> 'a
|
||||
|
||||
(** {1 Warning printing}*)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user