Remove SDocs from ErrCtxt & ErrInfo
This MR fixes #23436 (closed). It:
-
turns the
SDoc
used inErrCtxt
into a proper error datatype,ErrCtxtMsg,
which contains all the different error contexts that can be added, -
replaces
ErrInfo
with[ErrCtxt]
.ErrInfo
used to contain twoSDoc
s; the first is replaced with[ErrCtxt]
, and the second is removed, with the relevant information being put in the appropriate error message constructors.
Edited by sheaf