mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Improve failure messages
This commit is contained in:
parent
3349d2c16c
commit
bc74c9d1df
3 changed files with 4 additions and 4 deletions
|
|
@ -406,7 +406,7 @@ function alerts_api.release(entity_info, type_info, when, cur_alerts)
|
|||
|
||||
if(entity_info.alert_entity.entity_id == alert_consts.alertEntity("interface")) then
|
||||
if(interface.checkContext(entity_info.entity_val) == false) then
|
||||
alertErrorTraceback("Invalid interface entity detected "..entity_info.alert_entity.entity_id)
|
||||
alertErrorTraceback("Invalid interface entity value detected for entity id "..entity_info.alert_entity.entity_id)
|
||||
tprint(entity_info)
|
||||
return(false)
|
||||
else
|
||||
|
|
@ -414,7 +414,7 @@ function alerts_api.release(entity_info, type_info, when, cur_alerts)
|
|||
end
|
||||
elseif(entity_info.alert_entity.entity_id == alert_consts.alertEntity("network")) then
|
||||
if(network.checkContext(entity_info.entity_val) == false) then
|
||||
alertErrorTraceback("Invalid network entity detected "..entity_info.alert_entity.entity_id)
|
||||
alertErrorTraceback("Invalid network entity value detected for entity id "..entity_info.alert_entity.entity_id)
|
||||
tprint(entity_info)
|
||||
return(false)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue