utils/error_utils.go   A
last analyzed

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
cc 2
eloc 5
dl 0
loc 8
ccs 0
cts 2
cp 0
crap 6
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A utils.HandleError 0 3 2
1
package utils
2
3
import "log"
4
5
// HandleError checks error and logs it if there is one
6
func HandleError(err error, message string) {
7
	if err != nil {
8
		log.Fatal(message, err.Error())
9
	}
10
}
11