Fix incorrect gutter bail message (#7534)
This commit is contained in:
parent
3fb430257e
commit
dc50263ed0
1 changed files with 3 additions and 1 deletions
|
@ -611,7 +611,9 @@ impl std::str::FromStr for GutterType {
|
||||||
"spacer" => Ok(Self::Spacer),
|
"spacer" => Ok(Self::Spacer),
|
||||||
"line-numbers" => Ok(Self::LineNumbers),
|
"line-numbers" => Ok(Self::LineNumbers),
|
||||||
"diff" => Ok(Self::Diff),
|
"diff" => Ok(Self::Diff),
|
||||||
_ => anyhow::bail!("Gutter type can only be `diagnostics` or `line-numbers`."),
|
_ => anyhow::bail!(
|
||||||
|
"Gutter type can only be `diagnostics`, `spacer`, `line-numbers` or `diff`."
|
||||||
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue