export function getErrorString(error: unknown) { if (error instanceof Error) { return error.message; } return String(error); }