diff options
author | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2017-06-12 10:46:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 10:46:40 -0700 |
commit | c02e39d14cf20a39a0c2054d968f5833aff2f7fd (patch) | |
tree | e6fc23f9d525f493942916cbc2ca5425eb9b391f /src | |
parent | e087d6358bdb587ae1bedca3c7d333dc4aa1321c (diff) | |
parent | f17d163a9baf23e0d1cff00aea79dfc1e2750fe9 (diff) |
Merge pull request #9823 from mjkim/fix_unkown
Fix typos
Diffstat (limited to 'src')
-rw-r--r-- | src/ruby/lib/grpc/errors.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ruby/lib/grpc/errors.rb b/src/ruby/lib/grpc/errors.rb index 9071293a24..8f6aea30ad 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? |