Exception: ViteRuby::MissingExecutableError

Inherits:
Error
  • Object
show all
Defined in:
lib/vite_ruby/missing_executable_error.rb

Overview

Internal: Raised when the Vite executable can not be found.

Instance Method Summary collapse

Methods inherited from Error

#message

Constructor Details

#initialize(error = nil) ⇒ MissingExecutableError

Returns a new instance of MissingExecutableError.



5
6
7
8
9
10
11
12
# File 'lib/vite_ruby/missing_executable_error.rb', line 5

def initialize(error = nil)
  super <<~MSG
    ❌ The vite binary is not available. Have you installed the npm packages?

    :troubleshooting:
    #{error}
  MSG
end