diff --git a/src/ruby/lib/grpc/errors.rb b/src/ruby/lib/grpc/errors.rb index 9071293a246..8f6aea30adf 100644 --- a/src/ruby/lib/grpc/errors.rb +++ b/src/ruby/lib/grpc/errors.rb @@ -50,7 +50,8 @@ module GRPC Struct::Status.new(code, details, @metadata) end - def self.new_status_exception(code, details = 'unkown cause', metadata = {}) + def self.new_status_exception(code, details = 'unknown cause', + metadata = {}) codes = {} codes[OK] = Ok codes[CANCELLED] = Cancelled @@ -59,16 +60,16 @@ module GRPC codes[DEADLINE_EXCEEDED] = DeadlineExceeded codes[NOT_FOUND] = NotFound codes[ALREADY_EXISTS] = AlreadyExists - codes[PERMISSION_DENIED] = PermissionDenied + codes[PERMISSION_DENIED] = PermissionDenied codes[UNAUTHENTICATED] = Unauthenticated codes[RESOURCE_EXHAUSTED] = ResourceExhausted codes[FAILED_PRECONDITION] = FailedPrecondition codes[ABORTED] = Aborted codes[OUT_OF_RANGE] = OutOfRange - codes[UNIMPLEMENTED] = Unimplemented + codes[UNIMPLEMENTED] = Unimplemented codes[INTERNAL] = Internal - codes[UNIMPLEMENTED] = Unimplemented - codes[UNAVAILABLE] = Unavailable + codes[UNIMPLEMENTED] = Unimplemented + codes[UNAVAILABLE] = Unavailable codes[DATA_LOSS] = DataLoss if codes[code].nil? diff --git a/test/cpp/end2end/async_end2end_test.cc b/test/cpp/end2end/async_end2end_test.cc index 4d61fc620cb..a2a6e367093 100644 --- a/test/cpp/end2end/async_end2end_test.cc +++ b/test/cpp/end2end/async_end2end_test.cc @@ -196,7 +196,7 @@ bool plugin_has_sync_methods(std::unique_ptr& plugin) { // This class disables the server builder plugins that may add sync services to // the server. If there are sync services, UnimplementedRpc test will triger -// the sync unkown rpc routine on the server side, rather than the async one +// the sync unknown rpc routine on the server side, rather than the async one // that needs to be tested here. class ServerBuilderSyncPluginDisabler : public ::grpc::ServerBuilderOption { public: