diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-13 21:36:56 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-13 21:36:56 +0900 |
commit | aa40b5de70145fd8577a9cbcde4bfa69ba07a124 (patch) | |
tree | 3d175c48b19ef556bbd5033c702690a2bb459212 | |
parent | 9eb9391cf7d632d3a71f026649f7b17bba289849 (diff) | |
download | plum-aa40b5de70145fd8577a9cbcde4bfa69ba07a124.tar.gz |
http_error: show error code in #to_s
-rw-r--r-- | lib/plum/errors.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/plum/errors.rb b/lib/plum/errors.rb index 26fade1..09b5809 100644 --- a/lib/plum/errors.rb +++ b/lib/plum/errors.rb @@ -30,6 +30,10 @@ module Plum def http2_error_code ERROR_CODES[@http2_error_type] end + + def to_s + "#{@http2_error_type.to_s.upcase}: #{super}" + end end class RemoteHTTPError < HTTPError; end |