Remove function report_this_text() (#10728)

This commit is contained in:
Jellyfrog
2019-10-21 13:39:30 +02:00
committed by Tony Murray
parent 9b994d0562
commit e5849ca055
2 changed files with 1 additions and 6 deletions

View File

@@ -267,7 +267,7 @@ function snmp_get($device, $oid, $options = null, $mib = null, $mibdir = null)
$time_start = microtime(true);
if (strstr($oid, ' ')) {
echo report_this_text("snmp_get called for multiple OIDs: $oid");
throw new Exception("snmp_get called for multiple OIDs: $oid");
}
$cmd = gen_snmpget_cmd($device, $oid, $options, $mib, $mibdir);