phacility/phabricator · error · PhutilArgumentUsageException

$ex->getMessage()

Error message

$ex->getMessage()

What it means

Error "$ex->getMessage()" thrown in phacility/phabricator.

Source

Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:90

    if (empty($options[$key])) {
      throw new PhutilArgumentUsageException(
        pht(
          'Configuration key "%s" is unknown. Use "bin/config list" to list '.
          'all known keys.',
          $key));
    }

    $option = $options[$key];

    $type = $option->newOptionType();
    if ($type) {
      try {
        $value = $type->newValueFromCommandLineValue(
          $option,
          $value);
        $type->validateStoredValue($option, $value);
      } catch (PhabricatorConfigValidationException $ex) {
        throw new PhutilArgumentUsageException($ex->getMessage());
      }
    } else {
      // NOTE: For now, this handles both "wild" values and custom types.
      $type = $option->getType();
      switch ($type) {
        default:
          $value = json_decode($value, true);
          if (!is_array($value)) {
            switch ($type) {
              default:
                $message = pht(
                  'Configuration key "%s" is of type "%s". Specify it in JSON.',
                  $key,
                  $type);
                break;
            }
            throw new PhutilArgumentUsageException($message);
          }

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:90 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/fa2a2dcfe3025435. Report an issue: GitHub.