From 3fcaf160743f4339c0f4e4fab31dbe76b5c69833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Sat, 28 Dec 2024 14:14:00 +0100 Subject: [PATCH] actions: SaveCmd: Print the error of `SaveAs` to the `InfoBar` --- internal/action/command.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/action/command.go b/internal/action/command.go index 89ac71f0..8189e598 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -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) + } } }