Something went wrong. Try again.
browse the protocol like its 2008 ibex.desertthunder.dev
ubuntu atproto svelte
Something went wrong. Try again.
1234567891011121314/** * * Extracts the error message from an error object, or returns a fallback string * if the error is not an instance of Error. * * @param err * @param fallback * @returns an error message, object as string, or fallback */export function errorMessage(err: unknown, fallback?: string): string { const message = fallback ?? String(err); return err instanceof Error ? err.message : message;}