error_util.go 223 Bytes edit raw blame history 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()) }