Skip to content

Commit

Permalink
Update error message for wrong OpenSSL::Digest
Browse files Browse the repository at this point in the history
Use the same message as MRI
  • Loading branch information
herwinw committed Aug 15, 2023
1 parent 096974a commit 205fbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.digest(digest, data)
raise NameError unless klass.ancestors[1] == self
klass.new.digest(data)
rescue NameError
raise NotImplementedError, "not implemented digest: #{digest}"
raise "Unsupported digest algorithm (#{digest}).: unknown object name"
end

def self.base64digest(digest, data)
Expand Down

0 comments on commit 205fbbd

Please sign in to comment.