diff --git a/lib/mini_racer/truffleruby.rb b/lib/mini_racer/truffleruby.rb index bfb7088..3be4892 100644 --- a/lib/mini_racer/truffleruby.rb +++ b/lib/mini_racer/truffleruby.rb @@ -71,7 +71,9 @@ module MiniRacer end unless Polyglot.languages.include? "js" - warn "You also need to install the 'js' component with 'gu install js' on GraalVM 22.2+", uplevel: 0 if $VERBOSE + raise "The language 'js' is not available, you likely need to `export TRUFFLERUBYOPT='--jvm --polyglot'`\n" \ + "You also need to install the 'js' component with 'gu install js' on GraalVM 22.2+\n" \ + "Note that you need TruffleRuby+GraalVM and not just the TruffleRuby standalone to use MiniRacer" end @context = Polyglot::InnerContext.new(on_cancelled: -> {