lib/hyperdrive/errors/unknown_error.rb in hyperdrive-0.0.23 vs lib/hyperdrive/errors/unknown_error.rb in hyperdrive-0.0.24
- old
+ new
@@ -1,12 +1,12 @@
# encoding: utf-8
module Hyperdrive
module Errors
class UnknownError < HTTPError
- def initialize
+ def initialize(message = 'Unknown Error.')
@http_status_code = 500
- @message = 'Unknown Error.'
+ @message = message
end
end
end
end