mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
Check code rather than errno.
Different versions of that library work differently.
This commit is contained in:
@@ -34,7 +34,7 @@ async function authorisedHost (req, res) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.errno != "ENODATA") {
|
if (err.code != "ENODATA") {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user