Exception: Textus::PublishError

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Methods inherited from Error

#to_envelope

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