mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- controlapi/statfs: simplify error handling
This commit is contained in:
@@ -3289,13 +3289,7 @@ void CControlAPI::StatfsCGI(CyhookHandler *hh) {
|
|||||||
hh->WriteLn(result);
|
hh->WriteLn(result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
hh->SendError("statfs failed");
|
||||||
if (outType == json)
|
|
||||||
hh->WriteLn(json_out_error("statfs failed"));
|
|
||||||
else
|
|
||||||
hh->SendError();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user