1
0
silverbullet/packages/plugos/util.ts

7 lines
119 B
TypeScript

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