Skip to content

Commit 3d1acaa

Browse files
bail!() for error message
Co-authored-by: Michael Davis <[email protected]>
1 parent 482fe35 commit 3d1acaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

helix-term/src/commands/typed.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,7 @@ fn get_character_info(
11241124
);
11251125

11261126
if let encoding::EncoderResult::Unmappable(char) = result {
1127-
cx.editor
1128-
.set_error(format!("{char:?} cannot be mapped to {}", encoding.name()));
1129-
return Ok(());
1127+
bail!("{char:?} cannot be mapped to {}", encoding.name());
11301128
}
11311129

11321130
for byte in &bytes[current_byte..] {

0 commit comments

Comments
 (0)