Exception: Proscenium::Middleware::Esbuild::CompileError
- Inherits:
-
Base::CompileError
- Object
- StandardError
- Base::CompileError
- Proscenium::Middleware::Esbuild::CompileError
- Defined in:
- lib/proscenium/middleware/esbuild.rb
Instance Attribute Summary
Attributes inherited from Base::CompileError
Instance Method Summary collapse
-
#initialize(args) ⇒ CompileError
constructor
A new instance of CompileError.
Constructor Details
#initialize(args) ⇒ CompileError
Returns a new instance of CompileError.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/proscenium/middleware/esbuild.rb', line 7 def initialize(args) detail = args[:detail] detail = ActiveSupport::HashWithIndifferentAccess.new(Oj.load(detail, mode: :strict)) args[:detail] = if detail[:location] "#{detail[:text]} in #{detail[:location][:file]}:" + detail[:location][:line].to_s else detail[:text] end super end |