ソースを参照

Fix: changes missed in 511dd6b

Rod Hynes 9 年 前
コミット
f08c48bea4
1 ファイル変更2 行追加2 行削除
  1. 2 2
      psiphon/server/utils.go

+ 2 - 2
psiphon/server/utils.go

@@ -151,10 +151,10 @@ func (err IntentionalPanicError) Error() string {
 // recovered, call AddStack with the debug.Stack() at the
 // point of recovery, and panic with the resulting
 // IntentionalPanicError.
-func (err IntentionalPanicError) AddStack(debugStack []byte) string {
+func (err IntentionalPanicError) AddStack(debugStack []byte) error {
 	return NewIntentionalPanicError(
 		fmt.Sprintf("intentional panic error: %s\nstack: %s\n",
-			intentionalPanic.Error(),
+			err.Error(),
 			string(debugStack)))
 }