diff options
author | Andinus <andinus@inventati.org> | 2020-03-16 01:20:19 +0530 |
---|---|---|
committer | Andinus <andinus@inventati.org> | 2020-03-16 01:20:19 +0530 |
commit | 03c467b836efcfcacca499518a2ba284bca299f6 (patch) | |
tree | 415b227c5d8daab8997b9de49e469c52e7fb86c0 /pkg/cetus/cetus.go | |
parent | 53ecbbc03b8cd8e54479c2d90cbdae9921eaa127 (diff) | |
download | cetus-03c467b836efcfcacca499518a2ba284bca299f6.tar.gz |
Rewrite apod response retrival
Diffstat (limited to 'pkg/cetus/cetus.go')
-rw-r--r-- | pkg/cetus/cetus.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/cetus/cetus.go b/pkg/cetus/cetus.go index c22c742..ec7fc4c 100644 --- a/pkg/cetus/cetus.go +++ b/pkg/cetus/cetus.go @@ -1,6 +1,9 @@ package cetus -import "fmt" +import ( + "fmt" + "log" +) var version string = "v0.4.6" @@ -13,3 +16,9 @@ func Version() { func PrintPath(path string) { fmt.Println(path) } + +// ErrChk logs the context & error +func ErrChk(ctx string, err error) { + log.Println(ctx) + log.Fatal(err) +} |