mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-05 12:31:11 +02:00
6 lines
146 B
TypeScript
6 lines
146 B
TypeScript
export function isDuplicateKeyValueError(e: unknown | Error): boolean {
|
|
return (
|
|
(e as Error).message?.startsWith("duplicate key value")
|
|
);
|
|
}
|