mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 07:00:24 +09:00
actions: SaveCmd: Print the error of SaveAs to the InfoBar
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user