add help to web interface

This commit is contained in:
Gilles Crettenand
2015-06-04 17:55:11 +02:00
parent e12dc5a3c7
commit f2bbf7093e
8 changed files with 124 additions and 3 deletions

View File

@@ -31,6 +31,9 @@ abstract class WebService
$data["error"]["code"] = $e->getCode();
$data["error"]["reason"] = $e->getMessage();
$data["error"]["name"] = $e->getName();
$data['extra'] = Help::exception($e, $this, $this->func);
$this->status = 400;
Logger::info($e->getName(), 'error');