Skip to content

Commit

Permalink
fix build(?); review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jhump committed May 9, 2019
1 parent c11240b commit cfd8a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func WithDisablePathLengthFallback() ServeMuxOption {
//
// For stream errors that occur before any response has been written, the mux's
// ProtoErrorHandler will be invoked. However, once data has been written, the errors must
// be handled differently: they must included in the response body. The response body's
// be handled differently: they must be included in the response body. The response body's
// final message will include the error details returned by the stream error handler.
func WithStreamErrorHandler(fn StreamErrorHandlerFunc) ServeMuxOption {
return func(serveMux *ServeMux) {
Expand Down
4 changes: 2 additions & 2 deletions runtime/proto_errors.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package runtime

import (
"context"
"io"
"net/http"

"context"
"github.com/grpc-ecosystem/grpc-gateway/internal"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/status"
"github.com/grpc-ecosystem/grpc-gateway/runtime/internal"
)

// StreamErrorHandlerFunc accepts an error as a gRPC error generated via status package and translates it into a
Expand Down

0 comments on commit cfd8a61

Please sign in to comment.