Fix return code

This commit is contained in:
Alfredo Cardigliano 2024-12-06 18:22:08 +01:00
parent bf89143232
commit e03f4e1bf8

View file

@ -18,6 +18,9 @@ if not isAdministratorOrPrintErr() then
return
end
ntop.serviceRestart()
if not ntop.serviceRestart() then
rest_utils.answer(rest_utils.consts.err.internal_error)
return
end
rest_utils.answer(rc)