Skip to content

Commit e853969

Browse files
committed
Tell the user about external_cells option 'disabled' in error message
1 parent bd8b045 commit e853969

File tree

1 file changed

+4
-1
lines changed
  • app/buck2_common/src/legacy_configs

1 file changed

+4
-1
lines changed

app/buck2_common/src/legacy_configs/cells.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,10 @@ impl BuckConfigBasedCells {
493493
#[derive(buck2_error::Error, Debug)]
494494
#[buck2(tag = Input)]
495495
enum ExternalCellOriginParseError {
496-
#[error("Unknown external cell origin `{0}`")]
496+
// Disabled is handled outside this function
497+
#[error(
498+
"Unknown external cell origin `{0}`: valid values are 'bundled', 'git', 'disabled'"
499+
)]
497500
Unknown(String),
498501
#[error("Missing buckconfig `{0}.{1}` for external cell configuration")]
499502
MissingConfiguration(String, String),

0 commit comments

Comments
 (0)