actions: SaveCmd: Print the error of SaveAs to the InfoBar

This commit is contained in:
Jöran Karl
2024-12-28 14:14:00 +01:00
parent 5c21241fc4
commit 3fcaf16074

View File

@@ -890,7 +890,10 @@ func (h *BufPane) SaveCmd(args []string) {
if len(args) == 0 {
h.Save()
} else {
h.Buf.SaveAs(args[0])
err := h.Buf.SaveAs(args[0])
if err != nil {
InfoBar.Error(err)
}
}
}