🌳
pt0/serverF/throwErrorF/throwPubErrF.mts
1import * as _ from 'lodash-es'
4export const silPubErr = (msg: string, uniqDebugH?: object, dumpDebugH: object = {}) => {
5 const err = new PublicVisError(msg)
6 Object.assign(err, {uniqDebugH, dumpDebugH})
7 throw err
8}
10export const throwPubErr = (msg: string, uniqDebugH?: object, dumpDebugH: object = {}) => {
11 silPubErr(msg, uniqDebugH, {emailNotif: true, ...dumpDebugH})