From 027de55d6a06afb53d4d22c881094e9d7c0b9b18 Mon Sep 17 00:00:00 2001 From: Robin Olsen <129996395+Telikz@users.noreply.github.com> Date: Sat, 28 Feb 2026 23:42:26 +0100 Subject: [PATCH] Update internal/app/initializer.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- internal/app/initializer.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/app/initializer.go b/internal/app/initializer.go index 3c52b3d..6b883ab 100644 --- a/internal/app/initializer.go +++ b/internal/app/initializer.go @@ -15,9 +15,14 @@ type InteractiveInitializer struct{} func (i InteractiveInitializer) Init(path string) error { _, err := os.Stat(path) - if !os.IsNotExist(err) { + if err == nil { + // Path exists; assume already initialized. return nil } + if !os.IsNotExist(err) { + // Some other filesystem error; propagate it to the caller. + return err + } var initialize bool