MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / extractErrorArgs

Function extractErrorArgs

ses.cjs:6659–6668  ·  view source on GitHub ↗
(logArgs, subErrorsSink)

Source from the content-addressed store, hash-verified

6657 * @returns {any}
6658 */
6659 const extractErrorArgs= (logArgs, subErrorsSink)=> {
6660 const argTags= arrayMap(logArgs, (arg)=>{
6661 if( isError(arg)) {
6662 arrayPush(subErrorsSink, arg);
6663 return `(${tagError(arg)})`;
6664 }
6665 return arg;
6666 });
6667 return argTags;
6668 };
6669
6670 /**
6671 * @param {LogSeverity} severity

Callers 2

logErrorInfoFunction · 0.85
levelMethodFunction · 0.85

Calls 2

isErrorFunction · 0.85
tagErrorFunction · 0.85

Tested by

no test coverage detected