arx-research / libhalo

LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
https://arx.org/?source=gh
MIT License
30 stars 4 forks source link

Gateway: When command fails, propagate error code from the executor to requestor and fail the call #243

Closed icedevml closed 10 months ago

icedevml commented 10 months ago

Describe the solution you'd like Right now, when the gateway requestor calls gate.execHaloCmd(cmd) and the command fails with a HaLo error for any reason, the error will be displayed on the executor (smartphone) side only. The user would have an option to retry the command and the call to gate.execHaloCmd(cmd) on the requestor side will be just left hanging until the command is finally executed succesfully.

In some cases the command would never succeed for many possible reasons. The retry mechanism should be removed in favor of propagating HaLo errors straight to the requestor side on the first failure and failing the call fast.