1
0
silverbullet/plugbox/util.ts

7 lines
119 B
TypeScript
Raw Normal View History

export function safeRun(fn: () => Promise<void>) {
fn().catch((e) => {
// console.error(e);
throw e;
});
}