Exception: Textus::PublishError
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(m, target: nil) ⇒ PublishError
constructor
A new instance of PublishError.
Methods inherited from Error
Constructor Details
#initialize(m, target: nil) ⇒ PublishError
Returns a new instance of PublishError.
158 159 160 161 162 |
# File 'lib/textus/errors.rb', line 158 def initialize(m, target: nil) hint = ("file at #{target} wasn't published by textus; back it up and delete it, or move it under .textus/zones/" if target) super("publish_error", m, details: target ? { "target" => target } : {}, hint: hint) end |