updated decriptions in errors handlings

This commit is contained in:
Paul 2019-07-08 15:29:10 +02:00
parent af4e13adfa
commit c3163c83d0

View File

@ -167,15 +167,14 @@ func SendToInflux(fpc *FuelPricesConfig, prices *[]Price) {
}
}
// HandleError handles errors to return err
func HandleError(err error) error {
// HandleError handles errors
func HandleError(err error) {
if err != nil {
return err
log.Println(err)
}
return nil
}
// HandleFatalError fatal errors
// HandleFatalError handles fatal errors
func HandleFatalError(err error) {
if err != nil {
log.Fatal(err)