Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessa-passage authored Dec 5, 2024
1 parent 11a728c commit 3e8f627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/passageidentity/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Passage
class PassageError < StandardError
attr_reader :status_code, :error_code, :message, :status_text, :error

def initialize(status_code:, body:)
super
def initialize(message:, status_code: nil, body: nil)
super(message)

@status_code = status_code
@error_code = body['code']
Expand Down

0 comments on commit 3e8f627

Please sign in to comment.