Class: Slugforge::JsonError

Inherits:
Thor::Error
  • Object
show all
Defined in:
lib/slugforge/commands.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ JsonError

Returns a new instance of JsonError.



13
14
15
# File 'lib/slugforge/commands.rb', line 13

def initialize(message)
  super({error: message}.to_json)
end