Proper errors if glslangValidator isnt found, woop

This commit is contained in:
Noah Santschi-Cooney 2018-06-15 22:59:59 +01:00
parent 44ee663d06
commit ef643d8cdb
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
4 changed files with 14 additions and 13 deletions

View file

@ -75,8 +75,7 @@ export function preprocess(document: TextDocument) {
}
function lint(text: string, uri: string) {
const child = exec(`${conf.glslangPath} --stdin -S frag`, (error, out, err) => {
if (error) return
const child = exec(`${conf.glslangValidatorPath} --stdin -S frag`, (error, out, err) => {
const diagnostics: Diagnostic[] = []
const matches = filterMatches(out) as RegExpMatchArray[]
matches.forEach((match) => {