Blame view

error_util.go 223 Bytes
836cccf88   Marko Tikvić   WrapErrLoc() func
1
2
3
4
5
6
7
8
9
10
11
12
  package webutility
  
  import (
  	"fmt"
  
  	"git.to-net.rs/marko.tikvic/gologger"
  )
  
  func WrapErrLoc(e error) error {
  	file, line := gologger.CallerFilenameAndLineNumber()
  	return fmt.Errorf("%s %d: %s", file, line, e.Error())
  }