Skip to content

Commit 93b7f7a

Browse files
committed
fix: missing type param TODOs
1 parent 8bee7fd commit 93b7f7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/easypost/services/report.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class EasyPost::Services::Report < EasyPost::Services::Service
66
# Create a Report
77
def create(params = {})
88
unless params[:type]
9-
raise ArgumentError, "Missing 'type' parameter in params" # TODO: replace the error in the error-handling overhaul PR
9+
raise raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
1010
end
1111

1212
type = params.delete(:type)
@@ -26,7 +26,7 @@ def retrieve(id)
2626
# Retrieve all Report objects
2727
def all(params = {})
2828
unless params[:type]
29-
raise ArgumentError, "Missing 'type' parameter in params" # TODO: replace the error in the error-handling overhaul PR
29+
raise raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
3030
end
3131

3232
type = params.delete(:type)

0 commit comments

Comments
 (0)