diff options
Diffstat (limited to 'pkg/motd/fetch.go')
-rw-r--r-- | pkg/motd/fetch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/motd/fetch.go b/pkg/motd/fetch.go index fd76d7c..2262152 100644 --- a/pkg/motd/fetch.go +++ b/pkg/motd/fetch.go @@ -56,7 +56,7 @@ func FetchLatest() []Message { func fetchURL(url string) ([]byte, error) { resp, err := http.Get(url) if err != nil { - panic(err) + return []byte(""), err } defer resp.Body.Close() return ioutil.ReadAll(resp.Body) |