updated decriptions in errors handlings
This commit is contained in:
parent
af4e13adfa
commit
c3163c83d0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user