|
|
|
@ -121,7 +121,7 @@ export function handle_error(component, e, skip = false) {
|
|
|
|
bubble_error(component, e);
|
|
|
|
bubble_error(component, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!skip) {
|
|
|
|
if (!skip && !e.unhandled) {
|
|
|
|
component.$$.on_error.forEach(handler => {
|
|
|
|
component.$$.on_error.forEach(handler => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
handler(e);
|
|
|
|
handler(e);
|
|
|
|
@ -136,6 +136,7 @@ function bubble_error(component, e) {
|
|
|
|
if (component.$$.parent_component) {
|
|
|
|
if (component.$$.parent_component) {
|
|
|
|
handle_error(component.$$.parent_component, e, component.$$.in_slot);
|
|
|
|
handle_error(component.$$.parent_component, e, component.$$.in_slot);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
e.unhandled = true; // TODO this is very gross
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|