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



9
10
11
12
# File 'lib/hanami/assets/compiler.rb', line 9

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