Browse Source

add bug reporting instructions on crash

Alan Shreve 12 years ago
parent
commit
22537c0136
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/ngrok/util/trace.go

+ 10 - 1
src/ngrok/util/trace.go

@@ -5,8 +5,17 @@ import (
 	"runtime"
 )
 
+const crashMessage = `Oh noes! ngrok crashed!
+
+Please submit the stack trace and any relevant information to:
+github.com/inconshreveable/ngrok/issues
+
+panic: %v
+
+%s`
+
 func MakePanicTrace(err interface{}) string {
 	stackBuf := make([]byte, 4096)
 	n := runtime.Stack(stackBuf, false)
-	return fmt.Sprintf("panic: %v\n\n%s", err, stackBuf[:n])
+	return fmt.Sprintf(crashMessage, err, stackBuf[:n])
 }