Exception: MissingImageError
- Inherits:
-
CustomError
- Object
- StandardError
- CustomError
- MissingImageError
- Defined in:
- lib/wraith/helpers/custom_exceptions.rb
Instance Method Summary collapse
-
#initialize(msg = false) ⇒ MissingImageError
constructor
A new instance of MissingImageError.
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 |