diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-09-17 21:05:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-09-17 21:05:47 +0900 |
| commit | f104e9b6cce012cfcaeba6f75a4990062b03a876 (patch) | |
| tree | 4c87a6774b3850f51998347eedc138f08a99b7f3 /src/misc | |
| parent | fix(client): Fix #6698 (diff) | |
| download | sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.tar.gz sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.tar.bz2 sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.zip | |
chore: better error text
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/gen-id.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/gen-id.ts b/src/misc/gen-id.ts index 7779e2db1a..8562767bf8 100644 --- a/src/misc/gen-id.ts +++ b/src/misc/gen-id.ts @@ -16,6 +16,6 @@ export function genId(date?: Date): string { case 'meidg': return genMeidg(date); case 'ulid': return ulid(date.getTime()); case 'objectid': return genObjectId(date); - default: throw new Error('unknown id generation method'); + default: throw new Error('unrecognized id generation method'); } } |