Skip to content

Commit

Permalink
improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Palexer committed Feb 16, 2021
1 parent 36c987b commit f0eb115
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions systemstats/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"fmt"
"log"
"math"
"os"
"strconv"

"github.com/jaypipes/ghw"
Expand All @@ -15,7 +15,8 @@ import (

func handleErr(err error) {
if err != nil {
log.Println(err)
fmt.Println("systemstats (error): ", err)
os.Exit(1)
}
}

Expand Down

0 comments on commit f0eb115

Please sign in to comment.