From 3592349fd3b02f6a93db48970b9bd33dc269be91 Mon Sep 17 00:00:00 2001 From: tyler Date: Sun, 24 Dec 2023 16:24:30 -0500 Subject: [PATCH] Added better error messages --- app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index eea2071..e809ac5 100644 --- a/app.go +++ b/app.go @@ -59,12 +59,12 @@ func (a *App) startup(ctx context.Context) { func (a *App) initLog() error { fp, err := config.LogFile() if err != nil { - return fmt.Errorf("error getting filepath for log file") + return fmt.Errorf("error getting filepath for log file: %v", err) } f, err := os.OpenFile(fp, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0644) if err != nil { - return fmt.Errorf("error opening log file") + return fmt.Errorf("error opening log file: %v", err) } a.logInfo = log.New(f, "[info]", log.LstdFlags|log.Lshortfile)