{"record":{"id":"9983ee33f3ffd7bc","repo":"phacility/phabricator","slug":"specify-the-target-to-revoke-credentials-from-with-9983ee","errorCode":null,"errorMessage":"Specify the target to revoke credentials from with \"--from\" or \"--everywhere\", but not both.","messagePattern":"Specify the target to revoke credentials from with \"--from\" or \"--everywhere\", but not both\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php","lineNumber":128,"sourceCode":"          $type->getRevokerKey(),\n          $type->getRevokerName());\n\n        id(new PhutilConsoleBlock())\n          ->addParagraph(tsprintf('%B', $type->getRevokerDescription()))\n          ->draw();\n      }\n\n      return 0;\n    }\n\n    $target = null;\n    if (!strlen($from) && !$is_everywhere) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify the target to revoke credentials from with \"--from\" or '.\n          'specify \"--everywhere\".'));\n    } else if (strlen($from) && $is_everywhere) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify the target to revoke credentials from with \"--from\" or '.\n          'specify \"--everywhere\", but not both.'));\n    } else if ($is_everywhere) {\n      // Just carry the flag through.\n    } else {\n      $target = id(new PhabricatorObjectQuery())\n        ->setViewer($viewer)\n        ->withNames(array($from))\n        ->executeOne();\n      if (!$target) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Target \"%s\" is not a valid target to revoke credentials from. '.\n            'Usually, revoke from \"@username\".',\n            $from));\n      }\n    }","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php#L110-L146","documentation":"Error \"Specify the target to revoke credentials from with \"--from\" or \"--everywhere\", but not both.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:128 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}