phacility/phabricator · error · PhutilArgumentUsageException
$validation->getMessage()
Error message
$validation->getMessage()
What it means
Error "$validation->getMessage()" thrown in phacility/phabricator.
Source
Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:127
break;
}
}
$use_database = $args->getArg('database');
if ($option->getLocked() && $use_database) {
throw new PhutilArgumentUsageException(
pht(
'Config key "%s" is locked and can only be set in local '.
'configuration. To learn more, see "%s" in the documentation.',
$key,
pht('Configuration Guide: Locked and Hidden Configuration')));
}
try {
$option->getGroup()->validateOption($option, $value);
} catch (PhabricatorConfigValidationException $validation) {
// Convert this into a usage exception so we don't dump a stack trace.
throw new PhutilArgumentUsageException($validation->getMessage());
}
if ($use_database) {
$config_entry = PhabricatorConfigEntry::loadConfigEntry($key);
$config_entry->setValue($value);
// If the entry has been deleted, resurrect it.
$config_entry->setIsDeleted(0);
$config_entry->save();
$write_message = pht(
'Wrote configuration key "%s" to database storage.',
$key);
} else {
$config_source = new PhabricatorConfigLocalSource();
$local_path = $config_source->getReadablePath();View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:127 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/a5d657195d4da601.
Report an issue: GitHub.