Skip to content

Commit ba5e192

Browse files
committed
fix: reference to raised error name
1 parent 1b113f8 commit ba5e192

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/easypost/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def initialize(api_key:, read_timeout: 60, open_timeout: 30, api_base: 'https://
7676
# @param endpoint [String] URI path of the resource
7777
# @param params [Object] (nil) object to be used as the request parameters
7878
# @param api_version [String] the version of API to hit
79-
# @raise [EasyPost::EasyPostError] if the response has a non-2xx status code
79+
# @raise [EasyPost::Errors::EasyPostError] if the response has a non-2xx status code
8080
# @return [Hash] JSON object parsed from the response body
8181
def make_request(
8282
method,

lib/easypost/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# @param path [String] URI path of the resource
88
# @param requested_api_key [String] ({EasyPost.api_key}) key set Authorization header.
99
# @param body [String] (nil) body of the request
10-
# @raise [EasyPost::EasyPostError] if the response has a non-2xx status code
10+
# @raise [EasyPost::Errors::EasyPostError] if the response has a non-2xx status code
1111
# @return [Hash] JSON object parsed from the response body
1212
def call(method, path, api_key = nil, body = nil)
1313
raise EasyPost::Errors::MissingParameterError.new('api_key') if api_key.nil?

0 commit comments

Comments
 (0)