MCPcopy Index your code
hub / github.com/dataease/SQLBot / transformErrors

Function transformErrors

frontend/public/swagger-ui-bundle.js:34775–34789  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

34773 return s
34774 }
34775 const jn = [w, x]
34776 function transformErrors(s) {
34777 let o = { jsSpec: {} },
34778 i = On()(
34779 jn,
34780 (s, i) => {
34781 try {
34782 return i.transform(s, o).filter((s) => !!s)
34783 } catch (o) {
34784 return (console.error('Transformer error:', o), s)
34785 }
34786 },
34787 s
34788 )
34789 return i.filter((s) => !!s).map((s) => (!s.get('line') && s.get('path'), s))
34790 }
34791 let Pn = { line: 0, level: 'error', message: 'Unknown error' }
34792 const In = Ut(

Callers 1

errFunction · 0.85

Calls 5

OnFunction · 0.85
errorMethod · 0.80
getMethod · 0.65
filterMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected