1
0
silverbullet/plugos/util.ts

8 lines
149 B
TypeScript
Raw Normal View History

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