Code Monkey home page Code Monkey logo

Comments (2)

raff avatar raff commented on August 12, 2024

well, the problem is the missing error check on godet.Connect (that in case of error returns remote = nil)

While I could be checking the value of the receiver, should I do that in every call ? I don't think I have ever seen any code where object methods check the value of the receiver in order to avoid an error.

But I will update the example to check the error code for godet.Connect.

Regarding to the root cause (not being able to connect to Chrome), try godet/cmd/godet/main.go.
In there I have some code that starts the browser with the correct options (should work on MacOS and Linux, and if your browser is installed in a non standard location you can specify an alternative command to run)

from godet.

iafan avatar iafan commented on August 12, 2024

I agree that a check in every call is not necessary, and your README changes make sense and encourage proper error checking. So thanks!

from godet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.