mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:27:08 +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;
|
||||
}
|
||||
} catch (err) {
|
||||
if (err.errno != "ENODATA") {
|
||||
if (err.code != "ENODATA") {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user