ignore watcher binary load errors

master
Brad Cornes 2021-06-15 20:39:16 +01:00
parent 8aa60b122d
commit e2285c087c
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,11 @@ function resolve() {
var parsed = builds.map(parseTags) var parsed = builds.map(parseTags)
var candidates = parsed.filter(matchTags(runtime, abi)) var candidates = parsed.filter(matchTags(runtime, abi))
var winner = candidates.sort(compareTags(runtime))[0] var winner = candidates.sort(compareTags(runtime))[0]
if (winner) return list[winner.file]() if (winner) {
try {
return list[winner.file]()
} catch (_error) {}
}
} }
function parseTags(file) { function parseTags(file) {