Compare commits

..

No commits in common. "1c0579d06519314ba68d43d1210dec1324bf54a3" and "c63cd5fb0ed60fd7e39da2465fed04d6381efd20" have entirely different histories.

4
pkg.go
View File

@ -21,8 +21,8 @@ var (
baseDirLength int
)
func Init() {
_, file, _, _ := runtime.Caller(1)
func init() {
_, file, _, _ := runtime.Caller(0)
fmt.Printf("--\nWRAPPED_ERROR: %s\n--\n", file)
dir := path.Dir(file)
dirBase := path.Dir(dir)