mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 03:50:37 -05:00
Merge pull request #45737 from nextcloud/jtr/fix-appmanager-checkappforX-log
fix(AppManager): Name correct method in error + show error string
This commit is contained in:
commit
4e3aaec9df
1 changed files with 6 additions and 2 deletions
|
|
@ -319,7 +319,9 @@ class AppManager implements IAppManager {
|
|||
|
||||
if (!is_array($groupIds)) {
|
||||
$jsonError = json_last_error();
|
||||
$this->logger->warning('AppManger::checkAppForUser - can\'t decode group IDs: ' . print_r($enabled, true) . ' - json error code: ' . $jsonError);
|
||||
$jsonErrorMsg = json_last_error_msg();
|
||||
// this really should never happen (if it does, the admin should check the `enabled` key value via `occ config:list` because it's bogus for some reason)
|
||||
$this->logger->warning('AppManager::checkAppForUser - can\'t decode group IDs listed in app\'s enabled config key: ' . print_r($enabled, true) . ' - JSON error (' . $jsonError . ') ' . $jsonErrorMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -345,7 +347,9 @@ class AppManager implements IAppManager {
|
|||
|
||||
if (!is_array($groupIds)) {
|
||||
$jsonError = json_last_error();
|
||||
$this->logger->warning('AppManger::checkAppForUser - can\'t decode group IDs: ' . print_r($enabled, true) . ' - json error code: ' . $jsonError);
|
||||
$jsonErrorMsg = json_last_error_msg();
|
||||
// this really should never happen (if it does, the admin should check the `enabled` key value via `occ config:list` because it's bogus for some reason)
|
||||
$this->logger->warning('AppManager::checkAppForGroups - can\'t decode group IDs listed in app\'s enabled config key: ' . print_r($enabled, true) . ' - JSON error (' . $jsonError . ') ' . $jsonErrorMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue