Skip to content

Commit a8abe45

Browse files
committed
fix: add @Shinigami92's suggestion (change error to FakerError)
1 parent 80007a5 commit a8abe45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/finance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export class Finance {
303303
*/
304304
pin(length: number = 4): string {
305305
if (length < 1) {
306-
throw new Error('minimum length is 1');
306+
throw new FakerError('minimum length is 1');
307307
}
308308
return Array.from({ length }, () => this.faker.datatype.number(9)).join('');
309309
}

0 commit comments

Comments
 (0)