Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@config = default.dup.update(config) #150

Open
z3nnix opened this issue Sep 30, 2024 · 1 comment
Open

@config = default.dup.update(config) #150

z3nnix opened this issue Sep 30, 2024 · 1 comment

Comments

@z3nnix
Copy link

z3nnix commented Sep 30, 2024

/usr/home/zennix/.local/share/gem/ruby/3.3/gems/webrick-1.8.2/lib/webrick/server.rb:89:in `update': no implicit conversion of String into Hash (TypeError)

      @config = default.dup.update(config)
                                   ^^^^^^
        from /usr/home/zennix/.local/share/gem/ruby/3.3/gems/webrick-1.8.2/lib/webrick/server.rb:89:in `initialize'
        from /usr/home/zennix/.local/share/gem/ruby/3.3/gems/webrick-1.8.2/lib/webrick/httpserver.rb:47:in `initialize'
        from src/main.rb:57:in `new'
        from src/main.rb:57:in `<main>'
[zennix@s12]:<~/y0d9>$

ruby version and host information:

[zennix@s12]:<~/y0d9>$ ruby -v
ruby 3.3.2 (2024-05-30 revision e5a195edf6) [amd64-freebsd14]

What did I do wrong? ;c

@jeremyevans
Copy link
Contributor

It looks config is a string, but you need to provide a hash to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants