Improve error message

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
cli

Research direction

Reproduce the reported mr cooperative tag oneway.osm --out oneway.geojson command with an Overpass result using out body geom;, then compare it with out meta geom;. Trace where the Failed to retrieve element version message is produced. Done means the error explains that required metadata, such as the element version, is missing and points users toward requesting metadata.

Written by the indexing model from the issue text.

Description

Hi, here is the error message I got:

mr cooperative tag oneway.osm  --out oneway.geojson
- Initialize
hot here oneway.osm {
  _: [ 'cooperative', 'tag' ],
  rfc7464: true,
  out: 'oneway.geojson',
  'input-files': [ 'oneway.osm' ],
  inputFiles: [ 'oneway.osm' ],
  '$0': 'mr'
}
- oneway.osm: 0/223 elements
- oneway.osm: 0/223 elements
× oneway.osm: Failed to retrieve element version: way/24462453/undefined

I was struggling with this error message. I was thinking about a connection/internet error.

Then I finally read over and over the message and figure it out that only the "version" of my items are missing and not the ids.
So I finally changed the end of my overpass query from out body geom; to out meta geom;

And it fixed my issue. Can you please improve the error message? May be to suggest to the user that some "metadata" are missing.

Have a nice day 👍 And TY for this excellent tool ❤️

Dominant language
JavaScript
Stars
4
Forks
3
Avg merge
23h 21m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from maproulette/mr-cli

All issues in maproulette/mr-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.