Exception: MissingImageError

Inherits:
CustomError show all
Defined in:
lib/wraith/helpers/custom_exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = false) ⇒ MissingImageError

Returns a new instance of MissingImageError.



20
21
22
23
24
# File 'lib/wraith/helpers/custom_exceptions.rb', line 20

def initialize(msg = false)
  default_msg = "Something went wrong! It looks like you're missing some images. Check your output directory and make sure that each path has four files for every screen size (data.txt, diff, base, latest). If in doubt, delete your output directory and run Wraith again."
  msg = default_msg unless msg
  super(msg)
end