mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added centralized error code to API
Former-commit-id: 0400f0047276d08182477b4d4c59d42c665189c7
This commit is contained in:
parent
25d4239ef9
commit
48eea4ab87
@ -100,6 +100,10 @@ function returnError($typeError, $returnType = 'string') {
|
||||
returnData($returnType,
|
||||
array('type' => 'string', 'data' => __('No data to show.')));
|
||||
break;
|
||||
case 'centralized':
|
||||
returnData($returnType,
|
||||
array('type' => 'string', 'data' => __('This console is not manager of this environment, please manage this feature from centralized manager console (Metaconsole).')));
|
||||
break;
|
||||
default:
|
||||
returnData("string",
|
||||
array('type' => 'string', 'data' => __($returnType)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user