Module Frontend.Errors

Some plumbing for our compiler errors

type t =
  1. | FileNotFound of string
  2. | Syntax_error of Syntax_error.t
  3. | Semantic_error of Semantic_error.t
  4. | DebugDataError of Middle.Location_span.t * string
val pp : ?printed_filename:string -> ?code:string -> t Fmt.t

Pretty-printer for error type t. Replace occurances of filename from locations with printed_filename, if supplied. If code is supplied, read context from that string. Otherwise, it will attempt to open the original file.