From 5c21241fc4942780f2a9e49da8f759cf797917cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:11:16 +0200 Subject: [PATCH] actions: SaveAs: Print the error of `os.Stat()` to the `InfoBar` --- internal/action/actions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/action/actions.go b/internal/action/actions.go index e06b7815..3505f2e1 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -1003,6 +1003,9 @@ func (h *BufPane) SaveAsCB(action string, callback func()) bool { h.completeAction(action) return } + } else { + InfoBar.Error(err) + return } } else { InfoBar.YNPrompt(