mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
controlapi/statfs: simplify error handling
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0927756467
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-20 (Sat, 20 Feb 2016)
Origin message was:
------------------
- controlapi/statfs: simplify error handling
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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