MCPcopy
hub / github.com/livebud/bud / handle_error

Function handle_error

package/svelte/compiler.js:6960–6972  ·  view source on GitHub ↗
(str, err)

Source from the content-addressed store, hash-verified

6958 }
6959 }
6960 function handle_error(str, err) {
6961 re.lastIndex = 0;
6962 str = str.replace(re, (m, i, at2, hash2, name) => {
6963 if (at2)
6964 return `@${name}`;
6965 if (hash2)
6966 return `#${name}`;
6967 return "${...}";
6968 });
6969 console.log(`failed to parse:
6970${str}`);
6971 throw err;
6972 }
6973 var parse$1 = (source, opts) => {
6974 const comments = [];
6975 const { onComment, enter, leave } = get_comment_handlers(comments, source);

Callers 3

bFunction · 0.85
xFunction · 0.85
pFunction · 0.85

Calls 2

replaceMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected