mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-28 14:41:50 +00:00
Translated error messages
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {GedcomEntry, parse as parseGedcom} from 'parse-gedcom';
|
||||
import {TopolaError} from './error';
|
||||
import {
|
||||
JsonFam,
|
||||
JsonGedcomData,
|
||||
@@ -245,7 +246,7 @@ export function convertGedcom(
|
||||
!json.fams ||
|
||||
!json.fams.length
|
||||
) {
|
||||
throw new Error('Failed to read GEDCOM file');
|
||||
throw new TopolaError('GEDCOM_READ_FAILED', 'Failed to read GEDCOM file');
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user