mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 22:02:23 +08:00
4 lines
145 B
TypeScript
4 lines
145 B
TypeScript
export function getErrorMessage(error: unknown): string | undefined {
|
|
return error instanceof Error ? error.message || undefined : undefined
|
|
}
|