in htmlhint-server/src/server.ts [178:184]
function validateTextDocument(connection: server.IConnection, document: server.TextDocument): void {
try {
doValidate(connection, document);
} catch (err) {
connection.window.showErrorMessage(getErrorMessage(err, document));
}
}