mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Fix: a typo
This commit is contained in:
parent
b2d76bc60a
commit
2d2c1866df
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class SNMPMonitorType extends MonitorType {
|
||||||
error ? reject(error) : resolve(varbinds);
|
error ? reject(error) : resolve(varbinds);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
log.debug("monitor", `SNMP: Received varbinds (Type: ${snmp.ObjectType[varbinds[0].type]} Value: ${varbinds[0].value}`);
|
log.debug("monitor", `SNMP: Received varbinds (Type: ${snmp.ObjectType[varbinds[0].type]} Value: ${varbinds[0].value})`);
|
||||||
|
|
||||||
if (varbinds.length === 0) {
|
if (varbinds.length === 0) {
|
||||||
throw new Error(`No varbinds returned from SNMP session (OID: ${monitor.snmpOid})`);
|
throw new Error(`No varbinds returned from SNMP session (OID: ${monitor.snmpOid})`);
|
||||||
|
|
Loading…
Reference in a new issue