use uniq envvar STACKTRACE

This commit is contained in:
Jim Lambert 2020-02-14 10:05:15 -05:00
parent 966fc4686a
commit 89eb0d4da6

View File

@ -83,7 +83,7 @@ func (scope *Scope) Quote(str string) string {
// stackTrace spews a small stack trace // stackTrace spews a small stack trace
func stackTrace(err error) { func stackTrace(err error) {
if d := os.Getenv("DEBUG"); d == "true" { if d := os.Getenv("STACKTRACE"); d == "true" {
fmt.Println("#########: ", err) fmt.Println("#########: ", err)
for i := 8; i > 0; i-- { for i := 8; i > 0; i-- {
_, file, no, ok := runtime.Caller(i) _, file, no, ok := runtime.Caller(i)