aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Myungjun Kim <niduss@gmail.com>2017-02-23 00:28:12 +0900
committerGravatar Myungjun Kim <niduss@gmail.com>2017-02-23 01:55:44 +0900
commitf17d163a9baf23e0d1cff00aea79dfc1e2750fe9 (patch)
tree9ab8483ed1ede9529410054004017b33ed3678f7 /src
parenta1861f0d7809446eac5627cf06b7ec0dfd99d25d (diff)
Fix typos
unkown -> unknown fix unnecessary spacing
Diffstat (limited to 'src')
-rw-r--r--src/ruby/lib/grpc/errors.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ruby/lib/grpc/errors.rb b/src/ruby/lib/grpc/errors.rb
index f6998e17c4..4736ea093f 100644
--- a/src/ruby/lib/grpc/errors.rb
+++ b/src/ruby/lib/grpc/errors.rb
@@ -65,7 +65,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
@@ -74,16 +75,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?