{"record":{"id":"79a4b0258f4be7fc","repo":"phacility/phabricator","slug":"specify-the-target-to-revoke-credentials-from-with","errorCode":null,"errorMessage":"Specify the target to revoke credentials from with \"--from\" or specify \"--everywhere\".","messagePattern":"Specify the target to revoke credentials from with \"--from\" or specify \"--everywhere\"\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php","lineNumber":123,"sourceCode":"    if ($is_list) {\n      $last_key = last_key($types);\n      foreach ($types as $key => $type) {\n        echo tsprintf(\n          \"**%s** (%s)\\n\\n\",\n          $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(","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php#L105-L141","documentation":"Error \"Specify the target to revoke credentials from with \"--from\" or specify \"--everywhere\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:123 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"}