[*] исправлена обработка ошибок при вызове
This commit is contained in:
1 parent
973539681a
commit
cbe21226dd
1 file changed
+2
-1
+2
-1
@@ -31,7 +31,8 @@
|
|||||||
try {
|
try {
|
||||||
$API->$method();
|
$API->$method();
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
CJson::create(['status' => 'fail', 'message' => 'Метод '.$method.' не найден']);
|
echo CJson::create(['status' => 'fail', 'message' => 'Метод '.$method.' не найден']);
|
||||||
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user