Centralize error message construction
[tiger.ml.git] / compiler / src / lib / tiger / tiger_error.ml
CommitLineData
7c14a966
SK
1module Pos = Tiger_position
2
3exception T of string
4
5let exn ~pos ~msg =
6 let msg = Printf.sprintf "Error: %s. In %s." msg (Pos.to_string pos) in
7 raise (T msg)
This page took 0.017551 seconds and 4 git commands to generate.