Code Monkey home page Code Monkey logo

Comments (6)

marcus-j-davies avatar marcus-j-davies commented on September 17, 2024

Hi @spudwebb

That is Driver side.
@AlCalzone, is that by design? as it would make sense to fail on Refresh for a dead node?

I'm wondering if this is Server side, mistakenly returning a success?

from zwavejs.net.

AlCalzone avatar AlCalzone commented on September 17, 2024

The driver doesn't return anything, but it also doesn't throw an error. I didn't want to fail the whole method when just a single query failed.
The server also doesn't return a success value:
https://github.com/zwave-js/zwave-js-server/blob/03405c02304c4555900c4fe1a5e7a873becfd11e/src/lib/node/message_handler.ts#L116C1-L119

from zwavejs.net.

marcus-j-davies avatar marcus-j-davies commented on September 17, 2024

The server also doesn't return a success value:

It does by default, if no exception occurred 😅
every call yields a success property, which denotes if an error occurred driver/server side, so that will make sense, given nothing is going wrong

from zwavejs.net.

AlCalzone avatar AlCalzone commented on September 17, 2024

I see, that was hidden somewhere else. I guess it could be an enhancement to collect the errors while querying and return them to be able to indicate that something went wrong.

from zwavejs.net.

marcus-j-davies avatar marcus-j-davies commented on September 17, 2024

@AlCalzone,
Do you want to transfer this as a future enhancement?, not sure I can add much here, I don't have the right to transfer issues 🤷

from zwavejs.net.

marcus-j-davies avatar marcus-j-davies commented on September 17, 2024

I'll close this as an upstream enhancement.

from zwavejs.net.

Related Issues (15)

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.