Exception: Hanami::Assets::MissingAsset

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/assets/compiler.rb

Overview

Missing Asset error

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(name, sources) ⇒ MissingAsset

Returns a new instance of MissingAsset.

Since:

  • 0.1.0



11
12
13
14
# File 'lib/hanami/assets/compiler.rb', line 11

def initialize(name, sources)
  sources = sources.map(&:to_s).join(", ")
  super("Missing asset: `#{name}' (sources: #{sources})")
end