diff --git a/cnn_market.go b/cnn_market.go index 2d444a2..f7d0648 100644 --- a/cnn_market.go +++ b/cnn_market.go @@ -88,6 +88,8 @@ func (market *Market) Fetch() (self *Market) { defer func() { if err := recover(); err != nil { market.errors = fmt.Sprintf("Error fetching market data...\n%s", err) + } else { + market.errors = "" } }() diff --git a/yahoo_quotes.go b/yahoo_quotes.go index 66c20ae..dd6ca08 100644 --- a/yahoo_quotes.go +++ b/yahoo_quotes.go @@ -73,6 +73,8 @@ func (quotes *Quotes) Fetch() (self *Quotes) { defer func() { if err := recover(); err != nil { quotes.errors = fmt.Sprintf("\n\n\n\nError fetching stock quotes...\n%s", err) + } else { + market.errors = "" } }()