Fix incorrect gutter bail message (#7534)

pull/7414/head^2
Tom Taylor 1 year ago committed by GitHub
parent 3fb430257e
commit dc50263ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save