mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* feature: Make all errors in console.error be including an error for that stack tract * feature: Make all errors in console.error be including an error for that stack tract * fix: Add the tinisubreaper for the subreapers to know they are not the reaper * fix: overlay always destroyed * chore: Move the style of destroy to just private
7 lines
133 B
TypeScript
7 lines
133 B
TypeScript
export const asError = (e: unknown) => {
|
|
if (e instanceof Error) {
|
|
return new Error(e as any)
|
|
}
|
|
return new Error(`${e}`)
|
|
}
|