Skip to content

Commit

Permalink
really fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yutongp committed Feb 13, 2017
1 parent e4606c9 commit 0904456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/rpc/handler.go
Expand Up @@ -111,6 +111,6 @@ func panicRecovery(ctx context.Context) {
fx.Logger(ctx).Error("Panic recovered serving request", "error", err)
// rethrow panic back to yarpc
// before https://github.com/yarpc/yarpc-go/issues/734 fixed, throw a generic error.
panic(panicRespnose)
panic(panicResponse)
}
}
2 changes: 1 addition & 1 deletion modules/rpc/handler_test.go
Expand Up @@ -131,7 +131,7 @@ func TestOnewayInboundMiddleware_panic(t *testing.T) {

func testPanicHandler(t *testing.T) {
r := recover()
assert.EqualValues(t, r, panicRespnose)
assert.EqualValues(t, r, panicResponse)
}

type panicUnaryHandler struct{}
Expand Down

0 comments on commit 0904456

Please sign in to comment.