Expose machine-readable cause of error in callback result
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with src/tsp_worker.h and the SetErrorMessage usage linked in the issue, then inspect HandleErrorCallback in the asynchronous TSP and VRP workers. Confirm how NAN creates the JavaScript Error and make the callback expose both a machine-readable code and the existing message for each worker's error path.
Written by the indexing model from the issue text.
Description
In case of an error in the bindings we use SetErrorMessage in both the TSP and VRP worker to let NAN generate an Js Error for us. What we should add is not only a message but also a parse-able code, think:
{code: 'Timeout', message: 'Unable to find a solution, solver timed out'}
Implementation: in the async. workers override
void HandleErrorCallback()
and generate a Js Error object.
- Dominant language
- C++
- Stars
- 155
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/node-or-tools
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
mapbox/node-or-tools#84 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/node-or-tools#82 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/node-or-tools#81 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/node-or-tools#80 ·
-
Windows buildOpen
Difficulty 5/5 Over a week Newbie friendliness 15/100
mapbox/node-or-tools#77 · 5 reactions ·
All issues in mapbox/node-or-tools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
shadps4-emu/shadps4-qtlauncher#465 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Qiskit/qiskit-aer#2466 ·
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NVIDIA/attestation-sdk#41 · 1 comment ·
-
[Bug]: CMAKE Fails to find libgit2 on POP OSPossibly taken @Tirpitz93 claimed this today. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
subsurface/subsurface#5007 · 2 comments ·
Maintainers usually reply within 2 days
-
feature request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days