From 7e7b581d1f7a796477f85792906abebb6ca1cef6 Mon Sep 17 00:00:00 2001 From: dmkjfs Date: Wed, 15 Oct 2025 01:00:16 +0300 Subject: [PATCH] fix panicking proceeding a non-existing path --- cmd/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 28acc49..90114fc 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -17,9 +17,9 @@ func main () { response, err := core.GetStatistics(path) if err != nil { - fmt.Printf("Path %s is not found\n", path) + fmt.Printf("ERROR: path \"%s\" is not found!!!\n", path) + } else { + fmt.Print(internal.GetTable(response.Items)) } - - fmt.Print(internal.GetTable(response.Items)) } }