Skip to content

Commit e4cfaf5

Browse files
committed
fix throw message
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1aee07e commit e4cfaf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/validation/xmlValidator.node.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import type { Document, ParserOptions, parseXml } from 'libxmljs2'
2222
import { pathToFileURL } from 'url'
2323

2424
import { FILES } from '../resources.node'
25-
import { BaseValidator } from './baseValidator'
2625
import { MissingOptionalDependencyError, NotImplementedError, ValidationError } from './errors'
26+
import { BaseValidator } from './baseValidator'
2727

2828
let _parser: typeof parseXml | undefined
2929

@@ -35,8 +35,8 @@ async function getParser (): Promise<typeof parseXml> {
3535
} catch {
3636
throw new MissingOptionalDependencyError(
3737
'No XML validator available.' +
38-
' Please install the optional libraries "libxmljs".' +
39-
' Please make sure you have met the requirements for node-gyp. https://github.com/TooTallNate/node-gyp#installation'
38+
' Please install the optional libraries "libxmljs2".' +
39+
' Please make sure the system meets the requirements for node-gyp. https://github.com/TooTallNate/node-gyp#installation'
4040
)
4141
}
4242
_parser = libxml.parseXml

0 commit comments

Comments
 (0)