Skip to content

Commit

Permalink
Fix incorrect gutter bail message (#7534)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-taylor committed Jul 7, 2023
1 parent 3fb4302 commit dc50263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ impl std::str::FromStr for GutterType {
"spacer" => Ok(Self::Spacer),
"line-numbers" => Ok(Self::LineNumbers),
"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`."
),
}
}
}
Expand Down

0 comments on commit dc50263

Please sign in to comment.