Remove SDocs from ErrCtxt & ErrInfo
This MR fixes #23436 (closed). It:
-
turns the
SDocused inErrCtxtinto a proper error datatype,ErrCtxtMsg,which contains all the different error contexts that can be added, -
replaces
ErrInfowith[ErrCtxt].ErrInfoused to contain twoSDocs; 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