File tree 2 files changed +2
-2
lines changed
tests/settings/magick-settings
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class Magick {
87
87
const fileName = `/fonts/${ name } ` ;
88
88
const stats = ImageMagick . _api . FS . analyzePath ( fileName ) ;
89
89
if ( ! stats . exists ) {
90
- throw `Unable to find a font with the name '${ name } ', add it with Magick. addFont.`
90
+ throw `Unable to find a font with the name '${ name } ', register it with the addFont method of the Magick class .`
91
91
}
92
92
93
93
return fileName ;
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ describe('MagickSettings#font', () => {
13
13
14
14
expect ( ( ) => {
15
15
ImageMagick . read ( 'label:magick-wasm' , settings , ( ) => { /* never reached */ } ) ;
16
- } ) . toThrowError ( 'Unable to find a font with the name \'missing\', add it with Magick. addFont.' ) ;
16
+ } ) . toThrowError ( 'Unable to find a font with the name \'missing\', register it with the addFont method of the Magick class .' ) ;
17
17
} ) ;
18
18
} ) ;
You can’t perform that action at this time.
0 commit comments