Skip to content

Commit f3bcd2c

Browse files
authored
BUGFIX: panicking proceeding a non-existing path (#3)
1 parent ddb5c49 commit f3bcd2c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ func main () {
1717
response, err := core.GetStatistics(path)
1818

1919
if err != nil {
20-
fmt.Printf("Path %s is not found\n", path)
20+
fmt.Printf("ERROR: path \"%s\" is not found!!!\n", path)
21+
} else {
22+
fmt.Print(internal.GetTable(response.Items))
2123
}
22-
23-
fmt.Print(internal.GetTable(response.Items))
2424
}
2525
}

0 commit comments

Comments
 (0)