File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import type {
16
16
} from '../../docs/.vitepress/components/api-docs/method' ;
17
17
import vitepressConfig from '../../docs/.vitepress/config' ;
18
18
import { faker } from '../../src' ;
19
- import { FakerError } from '../../src/errors/faker-error' ;
20
19
import { formatTypescript , pathOutputDir } from './utils' ;
21
20
22
21
export function prettifyMethodName ( method : string ) : string {
@@ -61,7 +60,7 @@ function mdToHtml(md: string): string {
61
60
console . debug ( 'Rejected unsafe md:' , md ) ;
62
61
console . error ( 'Rejected unsafe html:' , rawHtml . replace ( / & g t ; / g, '>' ) ) ;
63
62
console . error ( 'Expected safe html:' , safeHtml . replace ( / & g t ; / g, '>' ) ) ;
64
- throw new FakerError ( 'Found unsafe html' ) ;
63
+ throw new Error ( 'Found unsafe html' ) ;
65
64
}
66
65
}
67
66
@@ -308,9 +307,7 @@ function extractDefaultFromComment(comment?: Comment): string {
308
307
return ;
309
308
}
310
309
if ( result [ 3 ] . trim ( ) ) {
311
- throw new FakerError (
312
- `Found description text after the default value:\n${ text } `
313
- ) ;
310
+ throw new Error ( `Found description text after the default value:\n${ text } ` ) ;
314
311
}
315
312
comment . shortText = result [ 1 ] ;
316
313
return result [ 2 ] ;
You can’t perform that action at this time.
0 commit comments